Methods Summary |
---|
java.lang.String | getAddress()
if ("any".equals(this.address) || "ANY".equals(this.address)
|| "INADDR_ANY".equals(this.address)) {
return null;
} else {
return this.address;
}
|
java.lang.String | getAddressTag()
return this.addressTag;
|
int | getBacklog()
if (this.backlog < 0) {
return 0;
} else {
return this.backlog;
}
|
int | getPort()
return this.port;
|
java.lang.String | getPortTag()
return this.portTag;
|
java.net.SocketAddress | getSocketAddress()
return this.sAddress;
|
boolean | getStartSelector()
return this.startSelector;
|
void | init()
this.port = Integer.parseInt(config.getAttributeValue(getPortTag()));
if (getAddressTag() != null) {
this.address = config.getAttributeValue(getAddressTag());
}
String address = getAddress();
if (address != null) {
this.sAddress = new InetSocketAddress(address, getPort());
} else {
this.sAddress = new InetSocketAddress(getPort());
}
|
void | setAddressTag(java.lang.String addressTag)
this.addressTag = addressTag;
|
void | setBacklog(int backlog)
this.backlog = backlog;
|
void | setPortTag(java.lang.String portTag)
this.portTag = portTag;
|
void | setStartSelector(boolean flag)
this.startSelector = flag;
|
public java.lang.String | toString()
return getAddress() + ":" + getPort();
|