1 18 19 package sync4j.framework.core.dm.ddf; 20 21 import java.util.Hashtable ; 22 import java.util.Map ; 23 24 25 32 public class PX { 33 34 36 public static final String PX_PORT_NBR = "/PortNbr"; 37 public static final String PX_ADDR_TYPE = "/AddrType"; 38 public static final String PX_ADDR = "/Addr"; 39 public static final String PX_AUTH = "/Auth"; 40 41 private String portNbr; 43 private String address; 44 private String addressType; 45 46 private Map auths; 48 49 51 public PX() { 52 this.auths = new Hashtable (); 53 } 54 55 63 public PX(final String portNbr, 64 final String address, 65 final String addressType) { 66 this(); 67 this.portNbr = portNbr; 68 this.address = address; 69 this.addressType = addressType; 70 71 } 72 73 75 80 public String getPortNbr() { 81 return portNbr; 82 } 83 84 89 public void setPortNbr(String portNbr) { 90 this.portNbr = portNbr; 91 } 92 93 98 public String getAddress() { 99 return address; 100 } 101 102 107 public void setAddress(String address) { 108 this.address = address; 109 } 110 111 116 public String getAddressType() { 117 return addressType; 118 } 119 120 125 public void setAddressType(String addressType) { 126 this.addressType = addressType; 127 } 128 129 134 public Auth getAuth(String authenticationName) { 135 return (Auth)auths.get(authenticationName); 136 } 137 138 143 public Map getAuths() { 144 return auths; 145 } 146 147 152 public void setAuths(Map auths) { 153 this.auths = auths; 154 } 155 156 157 162 public void addAuth(Auth auth, String authenticationName) { 163 auths.put(authenticationName, auth); 164 } 165 166 167 } | Popular Tags |