|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sip.address.NetObject
gov.nist.javax.sip.address.Authority
public class Authority
Authority part of a URI structure. Section 3.2.2 RFC2396
Constructor Summary | |
---|---|
Authority()
|
Method Summary | |
---|---|
Object |
clone()
Clones this object. |
String |
encode()
Return the host name in encoded form. |
StringBuffer |
encode(StringBuffer buffer)
Put the encoded version of this object in the given StringBuffer. |
boolean |
equals(Object other)
retruns true if the two Objects are equals , false otherwise. |
gov.nist.core.Host |
getHost()
Get the host name. |
gov.nist.core.HostPort |
getHostPort()
get the hostPort member. |
String |
getPassword()
Get password from the user info. |
int |
getPort()
Get the port. |
String |
getUser()
Get the user name if it exists. |
UserInfo |
getUserInfo()
get the userInfo memnber. |
void |
removePort()
remove the port. |
void |
removeUserInfo()
Remove the user Infor. |
void |
setHost(gov.nist.core.Host host)
set the host. |
void |
setHostPort(gov.nist.core.HostPort h)
Set the hostPort member |
void |
setPassword(String passwd)
set the password. |
void |
setPort(int port)
Set the port. |
void |
setUser(String user)
Set the user name of the userInfo member. |
void |
setUserInfo(UserInfo u)
Set the userInfo member |
Methods inherited from class gov.nist.javax.sip.address.NetObject |
---|
debugDump, debugDump, match, toString |
Methods inherited from class gov.nist.core.GenericObject |
---|
getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Authority()
Method Detail |
---|
public String encode()
encode
in class gov.nist.core.GenericObject
public StringBuffer encode(StringBuffer buffer)
gov.nist.core.GenericObject
encode
in class gov.nist.core.GenericObject
public boolean equals(Object other)
equals
in class NetObject
other
- Object to test.
public gov.nist.core.HostPort getHostPort()
public UserInfo getUserInfo()
public String getPassword()
public String getUser()
public gov.nist.core.Host getHost()
public int getPort()
public void removePort()
public void setPassword(String passwd)
passwd
- String to setpublic void setUser(String user)
user
- String to setpublic void setHost(gov.nist.core.Host host)
host
- Host to setpublic void setPort(int port)
port
- int to setpublic void setHostPort(gov.nist.core.HostPort h)
h
- HostPort to setpublic void setUserInfo(UserInfo u)
u
- UserInfo to setpublic void removeUserInfo()
public Object clone()
gov.nist.core.GenericObject
clone
in class gov.nist.core.GenericObject
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |