public abstract class SipServlet
extends javax.servlet.GenericServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
OUTBOUND_INTERFACES
The string "javax.servlet.sip.outboundInterfaces".
|
static String |
PRACK_SUPPORTED
Deprecated.
in favor of using the "javax.servlet.sip.supported" attribute
The string "javax.servlet.sip.100rel". This is the name of the ServletContext attribute whose value suggests whether the container supports the 100rel extension i.e. RFC 3262.
|
static String |
SIP_FACTORY
The string "javax.servlet.sip.SipFactory".
|
static String |
SIP_SESSIONS_UTIL
The string "javax.servlet.sip.Sessions".
|
static String |
SUPPORTED
The string "javax.servlet.sip.supported".
|
static String |
SUPPORTED_RFCs
The string "javax.servlet.sip.supportedRfcs".
|
static String |
TIMER_SERVICE
The string "javax.servlet.sip.TimerService".
|
| Constructor and Description |
|---|
SipServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doAck(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming ACK requests.
|
protected void |
doBranchResponse(SipServletResponse resp)
Invoked by the server to handle intermediate final responses only if this Servlet behaves as a proxy.
|
protected void |
doBye(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming BYE requests.
|
protected void |
doCancel(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming CANCEL requests.
|
protected void |
doErrorResponse(SipServletResponse resp)
Invoked by the server (via the doResponse method) to handle incoming 4xx - 6xx class responses.
|
protected void |
doInfo(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming INFO requests.
|
protected void |
doInvite(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming INVITE requests.
|
protected void |
doMessage(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming MESSAGE requests.
|
protected void |
doNotify(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming NOTIFY requests.
|
protected void |
doOptions(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming OPTIONS requests.
|
protected void |
doPrack(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming PRACK requests.
|
protected void |
doProvisionalResponse(SipServletResponse resp)
Invoked by the server (via the doResponse method) to handle incoming 1xx class responses.
|
protected void |
doPublish(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming PUBLISH requests.
|
protected void |
doRedirectResponse(SipServletResponse resp)
Invoked by the server to notify the servlet of incoming 3xx class responses.
|
protected void |
doRefer(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming REFER requests.
|
protected void |
doRegister(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming REGISTER requests.
|
protected void |
doRequest(SipServletRequest req)
Invoked to handle incoming requests.
|
protected void |
doResponse(SipServletResponse resp)
Invoked to handle incoming responses.
|
protected void |
doSubscribe(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming SUBSCRIBE requests.
|
protected void |
doSuccessResponse(SipServletResponse resp)
Invoked by the server (via the doResponse method) to handle incoming 2xx class responses.
|
protected void |
doUpdate(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming UPDATE requests.
|
void |
log(String message)
Writes the specified message to a servlet log file.
|
void |
log(String message,
Throwable t)
Writes an explanatory message and a stack trace for a given Throwable exception to the servlet log file.
|
void |
service(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp)
Invoked to handle incoming SIP messages: requests or responses.
|
public static final String OUTBOUND_INTERFACES
public static final String SIP_FACTORY
public static final String SIP_SESSIONS_UTIL
public static final String SUPPORTED
public static final String SUPPORTED_RFCs
public static final String PRACK_SUPPORTED
public static final String TIMER_SERVICE
protected void doAck(SipServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doBranchResponse(SipServletResponse resp) throws javax.servlet.ServletException, IOException
resp - the response objectjavax.servlet.ServletException - if an exception occurs that interferes with the servlet's normal operationIOException - if an input or output exception occursprotected void doBye(SipServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doCancel(SipServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doErrorResponse(SipServletResponse resp) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doInfo(SipServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doInvite(SipServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doMessage(SipServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doNotify(SipServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doOptions(SipServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doPrack(SipServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doProvisionalResponse(SipServletResponse resp) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doPublish(SipServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doRedirectResponse(SipServletResponse resp) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doRefer(SipServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doRegister(SipServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doRequest(SipServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doResponse(SipServletResponse resp) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doSubscribe(SipServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doSuccessResponse(SipServletResponse resp) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected void doUpdate(SipServletRequest req) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionpublic void log(String message)
log in class javax.servlet.GenericServletpublic void log(String message, Throwable t)
log in class javax.servlet.GenericServletpublic void service(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp)
throws javax.servlet.ServletException,
IOException
service in interface javax.servlet.Servletservice in class javax.servlet.GenericServletjavax.servlet.ServletExceptionIOExceptionCopyright © 2016. All rights reserved.