gov.nist.core
クラス HostPort

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

public final class HostPort
extends GenericObject

Holds the hostname:port.

バージョン:
JAIN-SIP-1.1
作成者:
M. Ranganathan
This code is in the public domain.
関連項目:
直列化された形式

コンストラクタの概要
HostPort()
          Default constructor
 
メソッドの概要
 java.lang.Object clone()
          Make a clone of this object.
 java.lang.String encode()
          Encode this hostport into its string representation.
 boolean equals(java.lang.Object other)
          returns true if the two objects are equals, false otherwise.
 Host getHost()
          get the Host field
 java.net.InetAddress getInetAddress()
          Return the internet address corresponding to the host.
 int getPort()
          get the port field
 boolean hasPort()
          Returns boolean value indicating if Header has port
 void removePort()
          remove port.
 void setHost(Host h)
          Set the host member
 void setPort(int p)
          Set the port member
 
クラス gov.nist.core.GenericObject から継承されたメソッド
debugDump, debugDump, getClassFromName, getMatcher, isMySubclass, match, merge, replace, replace, replace, replace, setMatcher
 
クラス java.lang.Object から継承されたメソッド
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

HostPort

public HostPort()
Default constructor

メソッドの詳細

encode

public java.lang.String encode()
Encode this hostport into its string representation. Note that this could be different from the string that has been parsed if something has been edited.

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

equals

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

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

getHost

public Host getHost()
get the Host field

戻り値:
host field

getPort

public int getPort()
get the port field

戻り値:
int

hasPort

public boolean hasPort()
Returns boolean value indicating if Header has port

戻り値:
boolean value indicating if Header has port

removePort

public void removePort()
remove port.


setHost

public void setHost(Host h)
Set the host member

パラメータ:
h - Host to set

setPort

public void setPort(int p)
Set the port member

パラメータ:
p - int to set

getInetAddress

public java.net.InetAddress getInetAddress()
                                    throws java.net.UnknownHostException
Return the internet address corresponding to the host.

戻り値:
the inet address for the host.
例外:
java.net.UnkownHostException - if host name cannot be resolved.
java.net.UnknownHostException

clone

public java.lang.Object clone()
クラス GenericObject の記述:
Make a clone of this object.

オーバーライド:
クラス GenericObject 内の clone