|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.servlet.sip.core.SipNetworkInterfaceManager
public class SipNetworkInterfaceManager
This class will be a placeholder for all sip network interfaces mapped to a sip
standard service. It should allow one to query for local and external address
(discovered by STUN) of a specific interface.
It will also allow various queries against its network interfaces to discover
the right one to use. Those queries could be cached in order to improve performance
| Field Summary | |
|---|---|
static int |
MAX_PORT_NUMBER
The maximum int value that could correspond to a port nubmer. |
static int |
MIN_PORT_NUMBER
The minimum int value that could correspond to a port nubmer bindable by the SIP Communicator. |
| Constructor Summary | |
|---|---|
SipNetworkInterfaceManager()
Default Constructor |
|
| Method Summary | |
|---|---|
void |
addExtendedListeningPoint(ExtendedListeningPoint extendedListeningPoint)
|
static int |
checkPortRange(int port,
java.lang.String transport)
Checks if the port is in the UDP-TCP port numbers (0-65355) range otherwise defaulting to 5060 if UDP, TCP or SCTP or to 5061 if TLS |
protected void |
computeOutboundInterfaces()
Compute all the outbound interfaces for this manager |
ExtendedListeningPoint |
findMatchingListeningPoint(java.lang.String transport,
boolean strict)
Retrieve the first matching listening point corresponding to the transport. |
ExtendedListeningPoint |
findMatchingListeningPoint(java.lang.String ipAddress,
int port,
java.lang.String transport)
Retrieve the first matching listening Point corresponding to the ipAddress port and transport given in parameter. |
java.util.Iterator<ExtendedListeningPoint> |
getExtendedListeningPoints()
Retrieve the listening points for this manager |
java.util.List<SipURI> |
getOutboundInterfaces()
Returns An immutable instance of the java.util.List interface containing the SipURI representation of IP addresses which are used by the container to send out the messages. |
void |
removeExtendedListeningPoint(ExtendedListeningPoint extendedListeningPoint)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_PORT_NUMBER
public static final int MIN_PORT_NUMBER
| Constructor Detail |
|---|
public SipNetworkInterfaceManager()
| Method Detail |
|---|
public java.util.Iterator<ExtendedListeningPoint> getExtendedListeningPoints()
public void addExtendedListeningPoint(ExtendedListeningPoint extendedListeningPoint)
extendedListeningPoint - public void removeExtendedListeningPoint(ExtendedListeningPoint extendedListeningPoint)
extendedListeningPoint -
public ExtendedListeningPoint findMatchingListeningPoint(java.lang.String transport,
boolean strict)
transport - the transportstrict - if true, it will search only for this transport otherwise it will look for any transport if no
valid listening point could be found for the transport in parameter
public ExtendedListeningPoint findMatchingListeningPoint(java.lang.String ipAddress,
int port,
java.lang.String transport)
ipAddress - the ip addressport - the porttransport - the transport
public static int checkPortRange(int port,
java.lang.String transport)
port - port to check
public java.util.List<SipURI> getOutboundInterfaces()
protected void computeOutboundInterfaces()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||