|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nist.javax.sip.ListeningPointImpl
public class ListeningPointImpl
Implementation of the ListeningPoint interface
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. |
ContactHeader |
createContactHeader()
Create a contact for this listening point. |
String |
getIPAddress()
Gets the IP of the ListeningPoint. |
MessageProcessor |
getMessageProcessor()
|
int |
getPort()
Gets the port of the ListeningPoint. |
SipProviderImpl |
getProvider()
Get the provider. |
String |
getSentBy()
Gets the sentBy attribute of the ListeningPoint. |
String |
getTransport()
Gets transport of the ListeningPoint. |
Via |
getViaHeader()
|
boolean |
isSentBySet()
|
static String |
makeKey(String host,
int port,
String transport)
Construct a key to refer to this structure from the SIP stack |
void |
sendHeartbeat(String ipAddress,
int port)
Send a heartbeat to the specified Ip address and port via this listening point. |
void |
setSentBy(String sentBy)
Sets the sentBy string for this ListeningPoint. |
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 |
---|
public static String makeKey(String host, int port, String transport)
host
- host stringport
- porttransport
- transport
public Object clone()
clone
in class Object
public int getPort()
getPort
in interface ListeningPoint
public String getTransport()
getTransport
in interface ListeningPoint
public SipProviderImpl getProvider()
public String getIPAddress()
ListeningPoint
getIPAddress
in interface ListeningPoint
public void setSentBy(String sentBy) throws ParseException
ListeningPoint
setSentBy
in interface ListeningPoint
sentBy
- the sentBy string to be set in requests top most Via
headers.
ParseException
- which signals that an error has been reached
unexpectedly while parsing the sentBy value.public String getSentBy()
ListeningPoint
getSentBy
in interface ListeningPoint
public boolean isSentBySet()
public Via getViaHeader()
public MessageProcessor getMessageProcessor()
public ContactHeader createContactHeader()
ListeningPointExt
createContactHeader
in interface ListeningPointExt
public void sendHeartbeat(String ipAddress, int port) throws IOException
ListeningPointExt
sendHeartbeat
in interface ListeningPointExt
IOException
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |