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

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

public class Authority
extends NetObject

Authority part of a URI structure. Section 3.2.2 RFC2396

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

コンストラクタの概要
Authority()
           
 
メソッドの概要
 java.lang.String encode()
          Return the host name in encoded form.
 boolean equals(java.lang.Object other)
          retruns true if the two Objects are equals , false otherwise.
 Host getHost()
          Get the host name.
 HostPort getHostPort()
          get the hostPort member.
 java.lang.String getPassword()
          Get password from the user info.
 int getPort()
          Get the port.
 java.lang.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(Host host)
          set the host.
 void setHostPort(HostPort h)
          Set the hostPort member
 void setPassword(java.lang.String passwd)
          set the password.
 void setPort(int port)
          Set the port.
 void setUser(java.lang.String user)
          Set the user name of the userInfo member.
 void setUserInfo(UserInfo u)
          Set the userInfo member
 
クラス 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
 

コンストラクタの詳細

Authority

public Authority()
メソッドの詳細

encode

public java.lang.String encode()
Return the host name in encoded form.

定義:
クラス NetObject 内の encode
戻り値:
encoded string (does the same thing as toString)

equals

public boolean equals(java.lang.Object other)
retruns true if the two Objects are equals , false otherwise.

オーバーライド:
クラス NetObject 内の equals
パラメータ:
other - Object to test.
戻り値:
boolean

getHostPort

public HostPort getHostPort()
get the hostPort member.

戻り値:
HostPort

getUserInfo

public UserInfo getUserInfo()
get the userInfo memnber.

戻り値:
UserInfo

getPassword

public java.lang.String getPassword()
Get password from the user info.

戻り値:
String

getUser

public java.lang.String getUser()
Get the user name if it exists.

戻り値:
String user or null if not set.

getHost

public Host getHost()
Get the host name.

戻り値:
Host (null if not set)

getPort

public int getPort()
Get the port.

戻り値:
int port (-1) if port is not set.

removePort

public void removePort()
remove the port.


setPassword

public void setPassword(java.lang.String passwd)
set the password.

パラメータ:
passwd - String to set

setUser

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

パラメータ:
user - String to set

setHost

public void setHost(Host host)
set the host.

パラメータ:
host - Host to set

setPort

public void setPort(int port)
Set the port.

パラメータ:
port - int to set

setHostPort

public void setHostPort(HostPort h)
Set the hostPort member

パラメータ:
h - HostPort to set

setUserInfo

public void setUserInfo(UserInfo u)
Set the userInfo member

パラメータ:
u - UserInfo to set

removeUserInfo

public void removeUserInfo()
Remove the user Infor.