|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.servlet.sip.core.ExtendedListeningPoint
public class ExtendedListeningPoint
| Constructor Summary | |
|---|---|
ExtendedListeningPoint(javax.sip.SipProvider sipProvider,
javax.sip.ListeningPoint listeningPoint)
|
|
| Method Summary | |
|---|---|
javax.sip.header.ContactHeader |
createContactHeader(java.lang.String displayName,
boolean usePublicAddress)
Create a Contact Header based on the host, port and transport of this listening point |
javax.sip.address.SipURI |
createRecordRouteURI(boolean usePublicAddress)
Create a Record Route URI based on the host, port and transport of this listening point |
javax.sip.header.ViaHeader |
createViaHeader(java.lang.String branch,
boolean usePublicAddress)
Create a Via Header based on the host, port and transport of this listening point |
java.lang.String |
getGlobalIpAddress()
Retrieve the global ip address of this listening point (found through STUN), null if no global ip address is asccoiated to it |
int |
getGlobalPort()
Retrieve the global port of this listening point (found through STUN), -1 if no global port is asccoiated to it |
java.lang.String |
getHost(boolean usePublicAddress)
Retrieve either the global ip address found by STUN or the local network interface one depending on the boolean value in parameter |
protected java.lang.String |
getIpAddress(boolean usePublicAddress)
|
java.util.List<java.lang.String> |
getIpAddresses()
Return the list of real ip address represented by this listening point. |
javax.sip.ListeningPoint |
getListeningPoint()
Retrieve the jain sip listening point being extended by this class |
int |
getPort()
Retrieve the port associated with this listening point |
javax.sip.SipProvider |
getSipProvider()
Retrieve the sip provider associated to the jain sip listening point being extended by this class |
java.lang.String |
getTransport()
Retrieve the transport associated with this listening point |
boolean |
isAnyLocalAddress()
return true if the ip address maps to 0.0.0.0. |
void |
setGlobalIpAddress(java.lang.String globalIpAddress)
Set the global ip address (found through STUN) of this extended listening point |
void |
setGlobalPort(int globalPort)
Set the global port (found through STUN) of this extended listening point |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExtendedListeningPoint(javax.sip.SipProvider sipProvider,
javax.sip.ListeningPoint listeningPoint)
| Method Detail |
|---|
protected java.lang.String getIpAddress(boolean usePublicAddress)
public javax.sip.header.ContactHeader createContactHeader(java.lang.String displayName,
boolean usePublicAddress)
usePublicAddress - if true, the host will be the global ip address found by STUN otherwise
it will be the local network interface ipaddressdisplayName - the display name to use
public javax.sip.header.ViaHeader createViaHeader(java.lang.String branch,
boolean usePublicAddress)
usePublicAddress - if true, the host will be the global ip address found by STUN otherwise
it will be the local network interface ipaddressbranch - the branch id to use
public javax.sip.address.SipURI createRecordRouteURI(boolean usePublicAddress)
usePublicAddress - if true, the host will be the global ip address found by STUN otherwise
it will be the local network interface ipaddress
public javax.sip.ListeningPoint getListeningPoint()
public javax.sip.SipProvider getSipProvider()
public java.lang.String getGlobalIpAddress()
public int getGlobalPort()
public void setGlobalIpAddress(java.lang.String globalIpAddress)
globalIpAddress - the global ip address of this listening pointpublic void setGlobalPort(int globalPort)
globalPort - the global port of this listening pointpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<java.lang.String> getIpAddresses()
public java.lang.String getHost(boolean usePublicAddress)
true - means we want to retrieve the global ip address found by STUN
public int getPort()
public java.lang.String getTransport()
public boolean isAnyLocalAddress()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||