|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.arsdigita.web.BaseServlet
com.arsdigita.web.BaseApplicationServlet
The base servlet for CCM applications. It manages database transactions, prepares an execution context for the request, and traps and handles requests to redirect.
Most CCM applications will extend this class by implementing
doService(HttpServletRequest,HttpServletResponse,Application)
to
perform application-private dispatch to UI code.
BaseServlet
,
DispatcherServlet
,
RedirectSignal
,
Serialized FormField Summary | |
static String |
APPLICATION_ID_ATTRIBUTE
The ID of the application whose service is requested. |
static String |
APPLICATION_ID_PARAMETER
The same as APPLICATION_ID_ATTRIBUTE , but as a
request parameter. |
static String |
versionId
|
Fields inherited from class com.arsdigita.web.BaseServlet |
REQUEST_URL_ATTRIBUTE |
Constructor Summary | |
BaseApplicationServlet()
|
Method Summary | |
protected void |
doService(javax.servlet.http.HttpServletRequest sreq,
javax.servlet.http.HttpServletResponse sresp)
Augments the context of the request and delegates to doService(HttpServletRequest,HttpServletResponse,Application) . |
protected abstract void |
doService(javax.servlet.http.HttpServletRequest sreq,
javax.servlet.http.HttpServletResponse sresp,
Application app)
The method that doService(HttpServletRequest,HttpServletResponse) calls. |
Methods inherited from class com.arsdigita.web.BaseServlet |
destroy, doDestroy, doGet, doInit, doPost, getUserContext, init |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
public static final String APPLICATION_ID_ATTRIBUTE
The ID of the application whose service is requested. This request attribute must be set by a previous servlet or filter before this servlet can proceed. In CCM, the default servlet, DispatcherServlet, sets this attribute.
public static final String APPLICATION_ID_PARAMETER
The same as APPLICATION_ID_ATTRIBUTE
, but as a
request parameter. This is present so applications not using
the dispatcher servlet may accept requests directly to their
servlets, provided the application ID is given in the URL.
Constructor Detail |
public BaseApplicationServlet()
Method Detail |
protected final void doService(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sresp) throws javax.servlet.ServletException, IOException
Augments the context of the request and delegates to doService(HttpServletRequest,HttpServletResponse,Application)
.
doService
in class BaseServlet
javax.servlet.ServletException
IOException
BaseServlet.doService(HttpServletRequest,HttpServletResponse)
protected abstract void doService(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sresp, Application app) throws javax.servlet.ServletException, IOException
The method that doService(HttpServletRequest,HttpServletResponse)
calls.
Servlet authors should implement this method to perform
application-specific request handling.
javax.servlet.ServletException
IOException
HttpServlet.service(HttpServletRequest,HttpServletResponse)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |