public interface SipApplicationRouter
Modifier and Type | Method and Description |
---|---|
void |
applicationDeployed(List<String> newlyDeployedApplicationNames)
Container notifies application router that new applications are deployed.
|
void |
applicationUndeployed(List<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,
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(Properties properties)
Initializes the SipApplicationRouter and passes in initialization
properties.
|
void init()
IllegalStateException
- if invoked more than oncevoid init(Properties properties)
properties
- AR initialization propertiesIllegalStateException
- if invoked more than oncevoid destroy()
void applicationDeployed(List<String> newlyDeployedApplicationNames)
newlyDeployedApplicationNames
- A list of names of the newly added
applicationsvoid applicationUndeployed(List<String> undeployedApplicationNames)
undeployedApplicationNames
- A list of names of the undeployed
applicationsSipApplicationRouterInfo getNextApplication(SipServletRequest initialRequest, SipApplicationRoutingRegion region, SipApplicationRoutingDirective directive, SipTargetedRequestInfo targetedRequestInfo, 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
.NullPointerException
- if the initialRequest
is nullIllegalStateException
- if the application router has not been
initialized yetCopyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.