|
||||||||||
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
ccc.web.AbstractCCCServlet
public abstract class AbstractCCCServlet
Abstract servlet action providing helper methods.
Constructor Summary | |
---|---|
AbstractCCCServlet()
Constructor. |
Method Summary | |
---|---|
protected void |
dispatchError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception e)
Dispatch to the error handler. |
protected void |
dispatchNotFound(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Dispatch to the 'not found' URI. |
protected void |
dispatchRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String relUri)
Send a redirect to the client. |
Actions |
getActions()
Accessor. |
Aliases |
getAliases()
Accessor. |
Comments |
getComments()
Accessor. |
protected java.lang.Exception |
getException(javax.servlet.http.HttpServletRequest request)
Retrieves the exception that this servlet should report. |
Files |
getFiles()
Accessor. |
Folders |
getFolders()
Accessor. |
Groups |
getGroups()
Accessor. |
protected Mailer |
getMailer()
Accessor. |
Pages |
getPages()
Accessor. |
Resources |
getResources()
Accessor. |
SearchEngine |
getSearch()
Accessor. |
Security |
getSecurity()
Accessor. |
Templates |
getTemplates()
Accessor. |
Users |
getUsers()
Accessor. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCCCServlet()
Method Detail |
---|
protected void dispatchNotFound(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
request
- The request.response
- The response.
javax.servlet.ServletException
- From servlet API.
java.io.IOException
- From servlet API.protected void dispatchError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Exception e) throws javax.servlet.ServletException, java.io.IOException
request
- The request.response
- The response.e
- The exception we encountered
javax.servlet.ServletException
- From servlet API.
java.io.IOException
- From servlet API.protected void dispatchRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String relUri) throws java.io.IOException
request
- The incoming request.response
- The outgoing response.relUri
- The relative URI to redirect to.
java.io.IOException
- Servlet API can throw an IOException
.protected java.lang.Exception getException(javax.servlet.http.HttpServletRequest request)
request
- The request that the exception will be retrieved from.
protected Mailer getMailer()
public Actions getActions()
getActions
in interface ServiceLocator
public Aliases getAliases()
getAliases
in interface ServiceLocator
public Comments getComments()
getComments
in interface ServiceLocator
public Files getFiles()
getFiles
in interface ServiceLocator
public Folders getFolders()
getFolders
in interface ServiceLocator
public Groups getGroups()
getGroups
in interface ServiceLocator
public Pages getPages()
getPages
in interface ServiceLocator
public Resources getResources()
getResources
in interface ServiceLocator
public SearchEngine getSearch()
getSearch
in interface ServiceLocator
public Security getSecurity()
getSecurity
in interface ServiceLocator
public Templates getTemplates()
getTemplates
in interface ServiceLocator
public Users getUsers()
getUsers
in interface ServiceLocator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |