Interface SipSCSEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
forward(URI destination, Header... headers)
Forwards the request back to the network, but with a new destination address.void
forward(Header... headers)
Forwards the request back to the network.AddressFactory
getAddressFactory()
Get the JAIN SIPAddressFactory
object, for creating SIP URIs and addresses for headers.HeaderFactory
getHeaderFactory()
Get the JAIN SIPHeaderFactory
object, for creating SIP headers to be used in responses.Request
getSipRequest()
Get the JAIN SIPRequest
object received by the SIS-SIP.void
reject(int statusCode, String reasonPhrase, Header... headers)
Instruct the SIS to reject the request with an error response.-
Methods inherited from interface com.opencloud.slee.resources.sis.script.scs.SCSEvent
compositionNotFound, compositionSelected, getRequest
-
-
-
-
Method Detail
-
getSipRequest
Request getSipRequest()
Get the JAIN SIPRequest
object received by the SIS-SIP.- Returns:
- an immutable
Request
object.
-
getAddressFactory
AddressFactory getAddressFactory()
Get the JAIN SIPAddressFactory
object, for creating SIP URIs and addresses for headers.- Returns:
- an
AddressFactory
instance.
-
getHeaderFactory
HeaderFactory getHeaderFactory()
Get the JAIN SIPHeaderFactory
object, for creating SIP headers to be used in responses.- Returns:
- an
HeaderFactory
instance.
-
forward
void forward(Header... headers)
Forwards the request back to the network. No composition is selected but the request will continue to its original destination. Additional headers may be added to the outgoing request. Routing headers such asRoute
andRecord-Route
will be ignored.- Parameters:
headers
- an optional list of headers to be added to the outgoing request.
-
forward
void forward(URI destination, Header... headers)
Forwards the request back to the network, but with a new destination address. No composition is selected but the request will continue to its new destination. Additional headers may be added to the outgoing request. Routing headers such asRoute
andRecord-Route
will be ignored.- Parameters:
destination
- a new destination URI for the requestheaders
- an optional list of headers to be added to the outgoing request.
-
reject
void reject(int statusCode, String reasonPhrase, Header... headers)
Instruct the SIS to reject the request with an error response.- Parameters:
statusCode
- the status code of the response, must be in the range 300-699.reasonPhrase
- the reason phrase, may be null, in which case the default reason phrase for the status code will be usedheaders
- optional list of headers that will be inserted in the response
-
-