public class ListeningPointImpl extends Object implements ListeningPoint, ListeningPointExt
| Modifier and Type | Field and Description |
|---|---|
protected MessageProcessor |
messageProcessor
Pointer to the imbedded mesage processor.
|
protected SipProviderImpl |
sipProvider
Provider back pointer
|
protected SipStackImpl |
sipStack
Our stack
|
protected String |
transport |
WS, WSS| Modifier | Constructor and Description |
|---|---|
protected |
ListeningPointImpl(SipStack sipStack,
int port,
String transport)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clone this listening point.
|
ContactHeader |
createContactHeader()
Create a contact for this listening point.
|
ViaHeader |
createViaHeader()
Create a Via header for this listening point.
|
String |
getIPAddress()
Gets the IP of the ListeningPoint.
|
protected String |
getKey()
Get the key for this strucut
|
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 |
removeSipProvider()
Remove the sip provider from this listening point.
|
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.
|
void |
setSipProvider(SipProviderImpl sipProviderImpl)
Set the sip provider for this structure.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalsprotected String transport
protected MessageProcessor messageProcessor
protected SipProviderImpl sipProvider
protected SipStackImpl sipStack
public static String makeKey(String host, int port, String transport)
host - host stringport - porttransport - transportprotected String getKey()
public void setSipProvider(SipProviderImpl sipProviderImpl)
sipProvider - provider to setpublic void removeSipProvider()
public Object clone()
public int getPort()
getPort in interface ListeningPointpublic String getTransport()
getTransport in interface ListeningPointpublic SipProviderImpl getProvider()
public String getIPAddress()
ListeningPointgetIPAddress in interface ListeningPointpublic void setSentBy(String sentBy) throws ParseException
ListeningPointsetSentBy in interface ListeningPointsentBy - 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()
ListeningPointgetSentBy in interface ListeningPointpublic boolean isSentBySet()
public Via getViaHeader()
public MessageProcessor getMessageProcessor()
public ContactHeader createContactHeader()
ListeningPointExtcreateContactHeader in interface ListeningPointExtpublic void sendHeartbeat(String ipAddress, int port) throws IOException
ListeningPointExtsendHeartbeat in interface ListeningPointExtIOExceptionpublic ViaHeader createViaHeader()
ListeningPointExtcreateViaHeader in interface ListeningPointExtCopyright © 2014. All Rights Reserved.