|
Oracle Communications Service Broker SAL API Reference Reference Release 6.0 E26227-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface B2buaHelper
Helper class providing support for B2BUA applications. An instance of this class can be retrieved from a SalRequest by invoking the method SalRequest.getB2buaHelper().
| Method Summary | |
|---|---|
SalRequest |
createCancel(SalSession _session)Creates a new CANCEL request to cancel the initial request sent on the other leg. |
SalRequest |
createRequest(SalRequest _origRequest)Creates a new request object belonging to a new SalSession. |
SalRequest |
createRequest(SalRequest _origRequest, boolean _linked, java.util.Map<java.lang.String,java.util.List<java.lang.String>> _headerMap)Creates a new request object belonging to a new SalSession. |
SalRequest |
createRequest(SalSession _session, SalRequest _origRequest, java.util.Map<java.lang.String,java.util.List<java.lang.String>> _headerMap)Creates a new subsequent request based on the specified original request. |
SalResponse |
createResponseToOriginalRequest(SalSession _session, int _status, java.lang.String _reasonPhrase)The request that results in creation of a SalSession is termed as the original request, a response to this original request can be created by the application even if the request was committed and application does not have a reference to this Request. |
SalRequest |
getLinkedSalRequest(SalRequest _req)If a new request is created based on an existing one with the link argument true using createRequest(SalRequest, boolean, java.util.Map) or using createRequest(SalSession, SalRequest, java.util.Map) the new request gets implicitly linked with the original request. |
SalSession |
getLinkedSession(SalSession _session)Returns the other SalSession that is linked to the specified SalSession, or null if none. |
java.util.List<SalMessage> |
getPendingMessages(SalSession _session, UAMode _mode) |
void |
linkSalSessions(SalSession _session1, SalSession _session2)Links the specified sessions, such that there is a 1-1 mapping between them. |
void |
unlinkSalSessions(SalSession _session)If the specified SalSession is linked to another session, then unlinks the two sessions from each other. |
| Method Detail |
|---|
SalSession getLinkedSession(SalSession _session)
_session - the SalSession from which to obtain the linked sessionSalRequest getLinkedSalRequest(SalRequest _req)
_req - other request
void linkSalSessions(SalSession _session1,
SalSession _session2)
_session1 - the first SalSession to link_session2 - the other SalSession to linkvoid unlinkSalSessions(SalSession _session)
_session - the session to be unlinked
SalResponse createResponseToOriginalRequest(SalSession _session,
int _status,
java.lang.String _reasonPhrase)
The response thus generated must have a different To tag from the other responses generated to the Request and must result in a different SalSession. In this (and similar) cases the container clones the original SalSession for the second and subsequentdialogs, as detailed above. The cloned session object will contain the same application data but its createRequest method will create requests belonging to that second or subsequent dialog, that is, with a To tag specific to that dialog.
_session - the SalSession for the original request_status - the status code for the response_reasonPhrase - the reason phrase for the response, or null to use a default reason phrase
SalRequest createRequest(SalRequest _origRequest,
boolean _linked,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> _headerMap)
_origRequest - request to be "copied"_linked - indicating if the resulting session should be linked with original or not_headerMap - a simple map containing header names and their values to be overridden in the new request. The values can be a specified in a java.util.List to accomodate for multi-valued headersSalRequest createRequest(SalRequest _origRequest)
_origRequest - request to be "copied"
SalRequest createRequest(SalSession _session,
SalRequest _origRequest,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> _headerMap)
_session - the session on which this request is to be created_origRequest - the original request_headerMap - the header map used to override the headers in the new subsequent request created. Also see createRequest(SalRequest, boolean, Map);SalRequest createCancel(SalSession _session)
_session - the session whose initial request is to be cancelled.
java.util.List<SalMessage> getPendingMessages(SalSession _session,
UAMode _mode)
|
Oracle Communications Service Broker SAL API Reference Reference Release 6.0 E26227-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||