Java Reference
In-Depth Information
L ISTING 11.2
Continued
return null;
}
Attributes newAtts = new BasicAttributes();
// get an iterator for all of the keys in the HashMap
Iterator attIter = attributes.keySet().iterator();
while (attIter.hasNext()) {
// get the value for the key.
String attName = (String)attIter.next();
Object value = attributes.get(attName);
// create a new Attribute
Attribute attribute = new BasicAttribute(attName, value);
// add the attribute to the list of attributes
newAtts.put(attribute);
}
return newAtts;
}
public void setFactory(String factory) {
this.factory = factory;
}
public String getServerName() {
return serverName;
}
public void setServerName(String serverName) {
this.serverName = serverName;
}
public int getPort() {
return port;
}
Search WWH ::




Custom Search