1 18 19 package org.apache.beehive.netui.tools.testrecorder.shared.config; 20 21 26 public class ServerConfig { 27 28 private String name; 29 private String hostname; 30 private int port; 31 32 public ServerConfig( String name, String hostname, int port ) { 33 this.name = name; 34 this.hostname = hostname; 35 this.port = port; 36 } 37 38 public String getName() { 39 return name; 40 } 41 42 public String getHostname() { 43 return hostname; 44 } 45 46 public int getPort() { 47 return port; 48 } 49 50 public String toString() { 51 StringBuffer sb = new StringBuffer ( 48 ); 52 sb.append( "[ " ); 53 sb.append( "name( " + getName() + " )" ); 54 sb.append( ", hostname( " + getHostname() + " )" ); 55 sb.append( ", port( " + getPort() + " )" ); 56 sb.append( " ]" ); 57 return sb.toString(); 58 } 59 60 } 61 | Popular Tags |