|
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.javax.sip.address.NetObject | +--gov.nist.javax.sip.address.UserInfo
User information part of a URL.
Field Summary | |
static int |
TELEPHONE_SUBSCRIBER
Constant field |
static int |
USER
constant field |
Constructor Summary | |
UserInfo()
Default constructor |
Method Summary | |
void |
clearPassword()
Clear the password field. |
String |
encode()
Encode the user information as a string. |
boolean |
equals(Object obj)
Compare for equality. |
String |
getPassword()
get the password field. |
String |
getUser()
get the user field. |
int |
getUserType()
Gets the user type (which can be set to TELEPHONE_SUBSCRIBER or USER) |
void |
setPassword(String p)
Set the password member |
void |
setUser(String user)
Set the user member |
void |
setUserType(int type)
Set the user type (to TELEPHONE_SUBSCRIBER or USER). |
Methods inherited from class gov.nist.javax.sip.address.NetObject |
clone, debugDump, debugDump, match, merge, replace, replace, replace, replace, toString |
Methods inherited from class gov.nist.core.GenericObject |
getClassFromName, getMatcher, isMySubclass, setMatcher |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int TELEPHONE_SUBSCRIBER
public static final int USER
Constructor Detail |
public UserInfo()
Method Detail |
public boolean equals(Object obj)
equals
in class NetObject
obj
- Object to set
public String encode()
encode
in class NetObject
public void clearPassword()
public int getUserType()
public String getUser()
public String getPassword()
public void setUser(String user)
user
- String to setpublic void setPassword(String p)
p
- String to setpublic void setUserType(int type) throws IllegalArgumentException
type
- int to set
IllegalArgumentException
- if type is not in range.
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |