|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SipApplicationDispatcher
Classes implementing this interface can be used in the SipService Class to be the central point getting the sip messages from the different stacks and dispatching them to sip applications.
| Field Summary | |
|---|---|
static java.lang.String[] |
EXTENSIONS_SUPPORTED
|
static java.lang.String[] |
METHODS_SUPPORTED
|
static java.lang.String[] |
RFC_SUPPORTED
|
| Method Summary | |
|---|---|
void |
addHostName(java.lang.String hostName)
Add a new hostname to the application dispatcher. |
void |
addSipApplication(java.lang.String sipApplicationName,
SipContext sipApplication)
Add a new sip application to which sip messages can be routed |
java.util.Set<java.lang.String> |
findHostNames()
Returns An immutable instance of the java.util.List interface containing the sip application dispatcher registered host names |
SipContext |
findSipApplication(java.lang.String applicationName)
Find the sip application to which sip messages can currently be routed by its name |
java.util.Iterator<SipContext> |
findSipApplications()
Find the sip applications to which sip messages can currently be routed |
java.lang.String |
getApplicationNameFromHash(java.lang.String hash)
|
ConcurrencyControlMode |
getConcurrencyControlMode()
|
long |
getCongestionControlCheckingInterval()
|
CongestionControlPolicy |
getCongestionControlPolicy()
|
java.lang.String |
getDomain()
|
java.lang.String |
getHashFromApplicationName(java.lang.String appName)
|
int |
getMemoryThreshold()
|
SipApplicationRouterInfo |
getNextInterestedApplication(SipServletRequestImpl sipServletRequestImpl)
|
int |
getNumberOfMessagesInQueue()
|
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. |
double |
getPercentageOfMemoryUsed()
|
int |
getQueueSize()
|
SipApplicationRouter |
getSipApplicationRouter()
|
SipFactoryImpl |
getSipFactory()
retrieve the sip factory |
SipNetworkInterfaceManager |
getSipNetworkInterfaceManager()
Retrieve the manager for the sip network interfaces for this application dispatcher |
void |
init()
Initialize the sip application dispatcher. |
boolean |
isBypassRequestExecutor()
|
boolean |
isBypassResponseExecutor()
|
boolean |
isExternal(java.lang.String host,
int port,
java.lang.String transport)
|
boolean |
isRouteExternal(javax.sip.header.RouteHeader routeHeader)
|
boolean |
isViaHeaderExternal(javax.sip.header.ViaHeader viaHeader)
|
void |
removeHostName(java.lang.String hostName)
Remove the hostname from the application dispatcher. |
SipContext |
removeSipApplication(java.lang.String sipApplicationName)
Remove a sip application to which sip messages can be routed |
void |
setBypassRequestExecutor(boolean bypassRequestExecutor)
|
void |
setBypassResponseExecutor(boolean bypassResponseExecutor)
|
void |
setConcurrencyControlMode(ConcurrencyControlMode concurrencyControlMode)
|
void |
setConcurrencyControlModeByName(java.lang.String concurrencyControlMode)
|
void |
setCongestionControlCheckingInterval(long interval)
|
void |
setCongestionControlPolicy(CongestionControlPolicy congestionControlPolicy)
|
void |
setCongestionControlPolicyByName(java.lang.String congestionControlPolicy)
|
void |
setDomain(java.lang.String domain)
|
void |
setMemoryThreshold(int memoryThreshold)
|
void |
setQueueSize(int queueSize)
|
void |
start()
Start the sip application dispatcher |
void |
stop()
Stop the sip application dispatcher |
| Methods inherited from interface javax.sip.SipListener |
|---|
processDialogTerminated, processIOException, processRequest, processResponse, processTimeout, processTransactionTerminated |
| Field Detail |
|---|
static final java.lang.String[] METHODS_SUPPORTED
static final java.lang.String[] EXTENSIONS_SUPPORTED
static final java.lang.String[] RFC_SUPPORTED
| Method Detail |
|---|
void init()
throws org.apache.catalina.LifecycleException
org.apache.catalina.LifecycleException - The Sip Application Router cannot be initialized correctlyvoid start()
void stop()
void addSipApplication(java.lang.String sipApplicationName,
SipContext sipApplication)
sipApplicationName - the sip application logical namesipApplication - the sip context representing the applicationSipContext removeSipApplication(java.lang.String sipApplicationName)
sipApplicationName - the sip application logical name of the application to removejava.util.Iterator<SipContext> findSipApplications()
SipContext findSipApplication(java.lang.String applicationName)
applicationName - the name of the application
SipNetworkInterfaceManager getSipNetworkInterfaceManager()
SipFactoryImpl getSipFactory()
java.util.List<SipURI> getOutboundInterfaces()
void addHostName(java.lang.String hostName)
hostName - the host namevoid removeHostName(java.lang.String hostName)
hostName - the host namejava.util.Set<java.lang.String> findHostNames()
SipApplicationRouterInfo getNextInterestedApplication(SipServletRequestImpl sipServletRequestImpl)
sipServletRequestImpl -
java.lang.String getDomain()
void setDomain(java.lang.String domain)
boolean isRouteExternal(javax.sip.header.RouteHeader routeHeader)
boolean isViaHeaderExternal(javax.sip.header.ViaHeader viaHeader)
boolean isExternal(java.lang.String host,
int port,
java.lang.String transport)
SipApplicationRouter getSipApplicationRouter()
java.lang.String getApplicationNameFromHash(java.lang.String hash)
java.lang.String getHashFromApplicationName(java.lang.String appName)
ConcurrencyControlMode getConcurrencyControlMode()
void setConcurrencyControlMode(ConcurrencyControlMode concurrencyControlMode)
void setConcurrencyControlModeByName(java.lang.String concurrencyControlMode)
int getQueueSize()
void setQueueSize(int queueSize)
void setMemoryThreshold(int memoryThreshold)
int getMemoryThreshold()
void setCongestionControlCheckingInterval(long interval)
long getCongestionControlCheckingInterval()
CongestionControlPolicy getCongestionControlPolicy()
void setCongestionControlPolicy(CongestionControlPolicy congestionControlPolicy)
void setCongestionControlPolicyByName(java.lang.String congestionControlPolicy)
int getNumberOfMessagesInQueue()
double getPercentageOfMemoryUsed()
void setBypassRequestExecutor(boolean bypassRequestExecutor)
boolean isBypassRequestExecutor()
void setBypassResponseExecutor(boolean bypassResponseExecutor)
boolean isBypassResponseExecutor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||