gov.nist.javax.sip.stack
クラス HopImpl

java.lang.Object
  上位を拡張 gov.nist.javax.sip.stack.HopImpl
すべての実装されたインタフェース:
javax.sip.address.Hop

public class HopImpl
extends java.lang.Object
implements javax.sip.address.Hop

Routing algorithms return a list of hops to which the request is routed.

バージョン:
JAIN-SIP-1.1 $Revision: 1.4 $ $Date: 2004/01/22 13:26:33 $
作成者:
M. Ranganathan
This code is in the public domain. IPv6 Support added by Emil Ivov (emil_ivov@yahoo.com)
Network Research Team (http://www-r2.u-strasbg.fr))
Louis Pasteur University - Strasbourg - France

コンストラクタの概要
HopImpl(java.lang.String hop)
          Creates new Hop
HopImpl(java.lang.String hostName, int portNumber, java.lang.String trans)
          Create new hop given host, port and transport.
 
メソッドの概要
 java.lang.String getHost()
          Retruns the host string.
 int getPort()
          Returns the port.
 java.lang.String getTransport()
          returns the transport string.
 boolean isDefaultRoute()
          Return true if this is a default route (ie. next hop proxy address)
 boolean isExplicitRoute()
          Return true if this is an explicit route (ie. extrcted from a ROUTE Header)
 boolean isURIRoute()
          Return true if this is uriRoute
 void setDefaultRouteFlag()
          Set the defaultRouteFlag.
 void setExplicitRouteFlag()
          Set the explicitRoute flag.
 void setURIRouteFlag()
          Set the URIRoute flag.
 java.lang.String toString()
          Debugging println.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

HopImpl

public HopImpl(java.lang.String hostName,
               int portNumber,
               java.lang.String trans)
Create new hop given host, port and transport.

パラメータ:
hostName - hostname
portNumber - port
trans - transport

HopImpl

public HopImpl(java.lang.String hop)
        throws java.lang.IllegalArgumentException
Creates new Hop

パラメータ:
hop - is a hop string in the form of host:port/Transport
例外:
IllegalArgument - exception if string is not properly formatted or null.
java.lang.IllegalArgumentException
メソッドの詳細

toString

public java.lang.String toString()
Debugging println.

定義:
インタフェース javax.sip.address.Hop 内の toString
オーバーライド:
クラス java.lang.Object 内の toString

getHost

public java.lang.String getHost()
Retruns the host string.

定義:
インタフェース javax.sip.address.Hop 内の getHost
戻り値:
host String

getPort

public int getPort()
Returns the port.

定義:
インタフェース javax.sip.address.Hop 内の getPort
戻り値:
port integer.

getTransport

public java.lang.String getTransport()
returns the transport string.

定義:
インタフェース javax.sip.address.Hop 内の getTransport

isExplicitRoute

public boolean isExplicitRoute()
Return true if this is an explicit route (ie. extrcted from a ROUTE Header)


isDefaultRoute

public boolean isDefaultRoute()
Return true if this is a default route (ie. next hop proxy address)


isURIRoute

public boolean isURIRoute()
Return true if this is uriRoute


setURIRouteFlag

public void setURIRouteFlag()
Set the URIRoute flag.


setDefaultRouteFlag

public void setDefaultRouteFlag()
Set the defaultRouteFlag.


setExplicitRouteFlag

public void setExplicitRouteFlag()
Set the explicitRoute flag.