|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.connection.HostPortSet
public class HostPortSet
Wraps multiple HostPortPair instances into one object. Used when multiple hostname
and port values need to be included in a single property string.
| Constructor Summary | |
|---|---|
HostPortSet()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getHosts()
Returns a space-delimited list of host names contained in this set. |
java.lang.String |
getPorts()
Returns a space-delimited list of port numbers contained in this set. |
boolean |
intersects(HostPortSet set)
Returns true if any HostPortPair in the specified set is contained in this set. |
static HostPortSet |
newInstance(java.lang.String hostProperty,
java.lang.String portProperty)
Create a new HostPortSet object from a list of host and ports. |
java.lang.String |
toString()
|
| Constructor Detail |
|---|
public HostPortSet()
| Method Detail |
|---|
public static HostPortSet newInstance(java.lang.String hostProperty,
java.lang.String portProperty)
hostProperty - space-delimited list of host names. May be
abbreviated to a single instance of the host name if all names
in the list are identical.portProperty - space-delimited list of port numbers. May be
abbreviated to a single port number if all ports in the list are
identical.
public java.lang.String getHosts()
public java.lang.String getPorts()
public boolean intersects(HostPortSet set)
set - set to be compared
public java.lang.String toString()
toString in class java.util.AbstractCollection<HostPortPair>
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||