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, wait
equals
protected 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 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
public ViaHeader createViaHeader()
ListeningPointExt
createViaHeader
in interface ListeningPointExt
Copyright © 2015. All Rights Reserved.