|
|||||||||||
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
The base servlet for CCM servlets. It manages database transactions, prepares an execution context for the request, and traps and handles requests to redirect.
Users of this class may implement doService(HttpServletRequest,HttpServletResponse)
to service a
request in this environment.
BaseApplicationServlet
,
BaseJSP
,
RedirectSignal
,
Serialized FormField Summary | |
static String |
REQUEST_URL_ATTRIBUTE
The name of the request attribute used to store the originally requested URL. |
static String |
versionId
|
Constructor Summary | |
BaseServlet()
|
Method Summary | |
void |
destroy()
|
protected void |
doDestroy()
|
protected void |
doGet(javax.servlet.http.HttpServletRequest sreq,
javax.servlet.http.HttpServletResponse sresp)
Processes HTTP GET requests. |
protected void |
doInit()
|
protected void |
doPost(javax.servlet.http.HttpServletRequest sreq,
javax.servlet.http.HttpServletResponse sresp)
Processes HTTP POST requests. |
protected void |
doService(javax.servlet.http.HttpServletRequest sreq,
javax.servlet.http.HttpServletResponse sresp)
The method that doGet(HttpServletRequest,HttpServletResponse) and doPost(HttpServletRequest,HttpServletResponse) call. |
protected UserContext |
getUserContext(javax.servlet.http.HttpServletRequest sreq,
javax.servlet.http.HttpServletResponse sresp)
Obtains a new user context from the http request parameters. |
void |
init(javax.servlet.ServletConfig sconfig)
|
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 REQUEST_URL_ATTRIBUTE
Constructor Detail |
public BaseServlet()
Method Detail |
public void init(javax.servlet.ServletConfig sconfig) throws javax.servlet.ServletException
javax.servlet.ServletException
protected void doInit() throws javax.servlet.ServletException
javax.servlet.ServletException
public void destroy()
protected void doDestroy()
protected void doService(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sresp) throws javax.servlet.ServletException, IOException
The method that doGet(HttpServletRequest,HttpServletResponse)
and doPost(HttpServletRequest,HttpServletResponse)
call. This is
the extension point for users of this class.
javax.servlet.ServletException
IOException
protected final void doGet(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sresp) throws javax.servlet.ServletException, IOException
Processes HTTP GET requests.
javax.servlet.ServletException
IOException
HttpServlet.doGet(HttpServletRequest,HttpServletResponse)
protected final void doPost(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sresp) throws javax.servlet.ServletException, IOException
Processes HTTP POST requests.
javax.servlet.ServletException
IOException
HttpServlet.doPost(HttpServletRequest,HttpServletResponse)
protected UserContext getUserContext(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sresp)
sreq
- sresp
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |