|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.core.GenericObject | +--gov.nist.core.HostPort
Holds the hostname:port.
Constructor Summary | |
HostPort()
Default constructor |
Method Summary | |
Object |
clone()
Make a clone of this object. |
String |
encode()
Encode this hostport into its string representation. |
boolean |
equals(Object other)
returns true if the two objects are equals, false otherwise. |
Host |
getHost()
get the Host field |
InetAddress |
getInetAddress()
Return the internet address corresponding to the host. |
int |
getPort()
get the port field |
boolean |
hasPort()
Returns boolean value indicating if Header has port |
void |
removePort()
remove port. |
void |
setHost(Host h)
Set the host member |
void |
setPort(int p)
Set the port member |
Methods inherited from class gov.nist.core.GenericObject |
debugDump, debugDump, getClassFromName, getMatcher, isMySubclass, match, merge, replace, replace, replace, replace, setMatcher |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HostPort()
Method Detail |
public String encode()
encode
in class GenericObject
public boolean equals(Object other)
equals
in class GenericObject
other
- Object to set
public Host getHost()
public int getPort()
public boolean hasPort()
public void removePort()
public void setHost(Host h)
h
- Host to setpublic void setPort(int p)
p
- int to setpublic InetAddress getInetAddress() throws UnknownHostException
java.net.UnkownHostException
- if host name cannot be resolved.
UnknownHostException
public Object clone()
GenericObject
clone
in class GenericObject
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |