Oracle Server E10293-02 ユーザーズマニュアル
Classes and Methods
2-8 Oracle Communication and Mobility Server Developer’s Guide
Outside of the service method, the doRequest() and doResponse() are the
broadest methods provided by the SipServlet class. These methods enable tasks
that are independent of the received method or response. You can extend methods to
perform specific request and response handling tasks.
broadest methods provided by the SipServlet class. These methods enable tasks
that are independent of the received method or response. You can extend methods to
perform specific request and response handling tasks.
Extend the following methods for request handling:
■
doInvite
– for SIP INVITE requests
■
doAck
– for SIP ACK requests
■
doCancel
– for SIP CANCEL requests
■
doBye
– for SIP BYE requests
■
doOptions
– for SIP OPTIONS requests
■
doRegister
– for SIP REGISTER requests
■
doSubscribe
– for SIP SUBSCRIBE requests
■
doNotify
– for SIP NOTIFY requests
■
doMessage
– for SIP MESSAGE requests
■
doInfo
– for SIP INFO requests
■
doPrack
– for SIP PRACK requests
For response handling, extend the following:
■
doProvisionalResponse
– for SIP 1xx informational responses
■
doSuccessResponse
– for SIP 2xx responses
■
doRedirectResponses
– for SIP 3xx responses
■
doErrorResponse
– for SIP 4xx, 5xx, and 6xx responses
Messages
SIP Messages follow the RFC 822 standard. Headers, values and content can be
accessed through the methods in the javax.servlet.sip.SipServletMessage
interface.
accessed through the methods in the javax.servlet.sip.SipServletMessage
interface.
Both the SipServletRequest and SipServletResponse classes extend the
SipServletMessage
SipServletMessage
interfaces:
■
public interface SipServletRequest extends
javax.servlet.ServletRequest,SipServletMessage
■
public interface SipServletResponse extends
javax.servlet.ServletResponse, SipServletMessage
Requests
SipServletRequest
and SipServletResponse objects in the SIP servlet methods
doRequest
and doResponse are implementations of the SipServletRequest
interface and the SipServletResponse interface which both extend the
SipServletMessage
SipServletMessage
interface from the javax.servlet.sip package.
Note:
All of these response handling methods, as well as the doAck
and doCancel request handling methods, are empty. The remaining
request handling methods respond to a request with a 500 Response
(Internal Server Error).
request handling methods respond to a request with a 500 Response
(Internal Server Error).