gov.nist.javax.sip.address
クラス UserInfo

java.lang.Object
  上位を拡張 gov.nist.core.GenericObject
      上位を拡張 gov.nist.javax.sip.address.NetObject
          上位を拡張 gov.nist.javax.sip.address.UserInfo
すべての実装されたインタフェース:
java.io.Serializable

public final class UserInfo
extends NetObject

User information part of a URL.

バージョン:
JAIN-SIP-1.1 $Revision: 1.2 $ $Date: 2004/01/22 13:26:28 $
作成者:
M. Ranganathan
Acknowledgement -- Lamine Brahimi Submitted a bug fix for a this class. This code is in the public domain.
関連項目:
直列化された形式

フィールドの概要
static int TELEPHONE_SUBSCRIBER
          Constant field
static int USER
          constant field
 
コンストラクタの概要
UserInfo()
          Default constructor
 
メソッドの概要
 void clearPassword()
          Clear the password field.
 java.lang.String encode()
          Encode the user information as a string.
 boolean equals(java.lang.Object obj)
          Compare for equality.
 java.lang.String getPassword()
          get the password field.
 java.lang.String getUser()
          get the user field.
 int getUserType()
          Gets the user type (which can be set to TELEPHONE_SUBSCRIBER or USER)
 void setPassword(java.lang.String p)
          Set the password member
 void setUser(java.lang.String user)
          Set the user member
 void setUserType(int type)
          Set the user type (to TELEPHONE_SUBSCRIBER or USER).
 
クラス gov.nist.javax.sip.address.NetObject から継承されたメソッド
clone, debugDump, debugDump, match, merge, replace, replace, replace, replace, toString
 
クラス gov.nist.core.GenericObject から継承されたメソッド
getClassFromName, getMatcher, isMySubclass, setMatcher
 
クラス java.lang.Object から継承されたメソッド
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

TELEPHONE_SUBSCRIBER

public static final int TELEPHONE_SUBSCRIBER
Constant field

関連項目:
定数フィールド値

USER

public static final int USER
constant field

関連項目:
定数フィールド値
コンストラクタの詳細

UserInfo

public UserInfo()
Default constructor

メソッドの詳細

equals

public boolean equals(java.lang.Object obj)
Compare for equality.

オーバーライド:
クラス NetObject 内の equals
パラメータ:
obj - Object to set
戻り値:
true if the two headers are equals, false otherwise.

encode

public java.lang.String encode()
Encode the user information as a string.

定義:
クラス NetObject 内の encode
戻り値:
String

clearPassword

public void clearPassword()
Clear the password field.


getUserType

public int getUserType()
Gets the user type (which can be set to TELEPHONE_SUBSCRIBER or USER)

戻り値:
the type of user.

getUser

public java.lang.String getUser()
get the user field.

戻り値:
String

getPassword

public java.lang.String getPassword()
get the password field.

戻り値:
String

setUser

public void setUser(java.lang.String user)
Set the user member

パラメータ:
user - String to set

setPassword

public void setPassword(java.lang.String p)
Set the password member

パラメータ:
p - String to set

setUserType

public void setUserType(int type)
                 throws java.lang.IllegalArgumentException
Set the user type (to TELEPHONE_SUBSCRIBER or USER).

パラメータ:
type - int to set
例外:
java.lang.IllegalArgumentException - if type is not in range.