public interface InviteBranch extends AttributeStore
AttributeStore
Modifier and Type | Method and Description |
---|---|
SipServletResponse |
createResponse(int statusCode,
String reasonPhrase)
This method allows a provisional or final response to be created for the branch
at a UAS.
|
SipServletResponse |
getFinalResponse()
This method will retrieve the final response that corresponds to the branch
or null if there is no such response.
|
UAMode |
getMode()
Return the
UAMode of the InviteBranch . |
SipServletRequest |
getRequest()
Return the
SipServletRequest of the InviteBranch |
SipSession |
getSession()
Return the
SipSession object where the InviteBranch belongs to |
clearAttributes, getAttribute, getAttributeNameSet, removeAttribute, setAttribute
SipSession getSession()
SipSession
object where the InviteBranch
belongs toSipSession
objectSipServletRequest getRequest()
SipServletRequest
of the InviteBranch
SipServletRequest
objectUAMode getMode()
UAMode
of the InviteBranch
. If the original invite
was incoming this method will return UAS, if the invite was outgoing the method will
return UAC.UAMode
of the invite request.SipServletResponse getFinalResponse()
SipServletResponse
object.SipServletResponse createResponse(int statusCode, String reasonPhrase)
statusCode
- status code for the responsereasonPhrase
- reason phrase to appear in response lineIllegalArgumentException
- if the statuscode is not a valid
SIP status codeIllegalStateException
- if the request has already been
responded to with a final status code or if the container is not
acting as the UAS for the INVITE transactionCopyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.