|
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.UserInfo
public final class 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. |
StringBuffer |
encode(StringBuffer buffer)
Put the encoded version of this object in the given StringBuffer. |
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 |
---|
debugDump, debugDump, match, toString |
Methods inherited from class gov.nist.core.GenericObject |
---|
clone, getClassFromName, getMatcher, isMySubclass, makeClone, merge, 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 gov.nist.core.GenericObject
public StringBuffer encode(StringBuffer buffer)
gov.nist.core.GenericObject
encode
in class gov.nist.core.GenericObject
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: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |