NIST SIP Parser and Stack (v1.2) API

gov.nist.javax.sip
Class ListeningPointImpl

java.lang.Object
  |
  +--gov.nist.javax.sip.ListeningPointImpl
All Implemented Interfaces:
Cloneable, ListeningPoint, Serializable

public class ListeningPointImpl
extends Object
implements ListeningPoint

Implementation of the ListeningPoint interface

Version:
JAIN-SIP-1.1
Author:
M. Ranganathan
This code is in the public domain.
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.sip.ListeningPoint
PORT_5060, PORT_5061, SCTP, TCP, TLS, UDP
 
Method Summary
 Object clone()
          clone this listening point.
 String getHost()
          Gets host name of this ListeningPoint
 int getPort()
          Gets the port of the ListeningPoint.
 SipProviderImpl getProvider()
          Get the provider.
 String getTransport()
          Gets transport of the ListeningPoint.
static String makeKey(String host, int port, String transport)
          Construct a key to refer to this structure from the SIP stack
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sip.ListeningPoint
equals
 

Method Detail

makeKey

public static String makeKey(String host,
                             int port,
                             String transport)
Construct a key to refer to this structure from the SIP stack

Parameters:
host - host string
port - port
transport - transport
Returns:
a string that is used as a key

clone

public Object clone()
clone this listening point. Note that a message Processor is not started. The transport is set to null.

Overrides:
clone in class Object
Returns:
cloned listening point.

getHost

public String getHost()
Gets host name of this ListeningPoint

Returns:
host of ListeningPoint

getPort

public int getPort()
Gets the port of the ListeningPoint. The default port of a ListeningPoint is dependent on the scheme and transport. For example:

Specified by:
getPort in interface ListeningPoint
Returns:
port of ListeningPoint

getTransport

public String getTransport()
Gets transport of the ListeningPoint.

Specified by:
getTransport in interface ListeningPoint
Returns:
transport of ListeningPoint

getProvider

public SipProviderImpl getProvider()
Get the provider.

Returns:
the provider.

NIST SIP Parser and Stack (v1.2) API

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Get the latest distribution.
Submit a bug report or feature request.