View Javadoc
1 package org.argosfields.multi.server; 2 3 import java.io.Serializable; 4 5 import org.apache.commons.lang.NullArgumentException; 6 7 /*** 8 * ServerInfo.java 9 * @author Xavier Cho 10 * @version $Revision: 1.1 $ $Date: 2004/04/17 08:59:18 $ 11 */ 12 public class ServerInfo implements Serializable { 13 14 private String welcomeMessage; 15 private String hostName; 16 private int port; 17 18 /*** 19 * @param welcomeMessage 20 * @param hostName 21 * @param port 22 */ 23 public ServerInfo( 24 final String welcomeMessage, 25 final String hostName, 26 final int port) { 27 if (welcomeMessage == null) { 28 throw new NullArgumentException("welcomeMessage"); 29 } 30 31 if (hostName == null) { 32 throw new NullArgumentException("hostName"); 33 } 34 35 this.welcomeMessage = welcomeMessage; 36 this.hostName = hostName; 37 this.port = port; 38 } 39 40 /*** 41 * @return Returns the hostName. 42 */ 43 public String getHostName() { 44 return hostName; 45 } 46 47 /*** 48 * @return Returns the port. 49 */ 50 public int getPort() { 51 return port; 52 } 53 54 /*** 55 * @return Returns the welcomeMessage. 56 */ 57 public String getWelcomeMessage() { 58 return welcomeMessage; 59 } 60 }

This page was automatically generated by Maven