|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SipApplicationRouter
This interface class specifies the API between the container and the application router.
Method Summary | |
---|---|
void |
applicationDeployed(java.util.List<java.lang.String> newlyDeployedApplicationNames)
Container notifies application router that new applications are deployed. |
void |
applicationUndeployed(java.util.List<java.lang.String> undeployedApplicationNames)
Container notifies application router that some applications are undeployed. |
void |
destroy()
Container calls this method when it finishes using this application router. |
SipApplicationRouterInfo |
getNextApplication(SipServletRequest initialRequest,
SipApplicationRoutingRegion region,
SipApplicationRoutingDirective directive,
SipTargetedRequestInfo targetedRequestInfo,
java.io.Serializable stateInfo)
This method is called by the container when a servlet sends or proxies an initial SipServletRequest. |
void |
init()
Initializes the SipApplicationRouter. |
void |
init(java.util.Properties properties)
Initializes the SipApplicationRouter and passes in initialization properties. |
Method Detail |
---|
void init()
java.lang.IllegalStateException
- if invoked more than oncevoid init(java.util.Properties properties)
properties
- AR initialization properties
java.lang.IllegalStateException
- if invoked more than oncevoid destroy()
void applicationDeployed(java.util.List<java.lang.String> newlyDeployedApplicationNames)
newlyDeployedApplicationNames
- A list of names of the newly added
applicationsvoid applicationUndeployed(java.util.List<java.lang.String> undeployedApplicationNames)
undeployedApplicationNames
- A list of names of the undeployed
applicationsSipApplicationRouterInfo getNextApplication(SipServletRequest initialRequest, SipApplicationRoutingRegion region, SipApplicationRoutingDirective directive, SipTargetedRequestInfo targetedRequestInfo, java.io.Serializable stateInfo)
SipApplicationRouterInfo
for details.
initialRequest
- The initial request for which the container is
asking for application selection. The request must not be
modified by the AR. It is recommended that the implementations
explicitly disallow any mutation action by throwing appropriate
RuntimeException like IllegalStateException.region
- Which region the application selection process is indirective
- The routing directive used in creating this request.
If this is a request received externally, directive is NEW.targetedRequestInfo
- If initialRequest is a targeted request, this object
gives the type of targeted request (ENCODED_URI, JOIN, REPLACES) and
the targeted application name. If the initialRequest is not targeted, this parameter is null
.stateInfo
- If this request is relayed from a previous request by
an application, this is the stored state the application router
returned earlier when invoked to handle the previous request.
null
.
java.lang.NullPointerException
- if the initialRequest
is null
java.lang.IllegalStateException
- if the application router has not been
initialized yet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |