public abstract class AbstractHttpServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.ServletConfig |
config
The filter configuration
|
protected String |
servletContextName
The Servlet context name
|
| Constructor and Description |
|---|
AbstractHttpServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterInit(javax.servlet.ServletConfig config)
Allows sub-classes to initialize
|
protected ExoContainer |
getContainer() |
javax.servlet.ServletContext |
getServletContext() |
void |
init(javax.servlet.ServletConfig config) |
protected void |
onPortalEnvironmentError(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Allow the sub classed to execute a task when the portal environment could not be set
because no related portal container could be found
|
protected void |
onService(ExoContainer container,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Allow the sub classes to execute a task when the method
service is called |
protected boolean |
requirePortalEnvironment()
Indicates if it requires that a full portal environment must be set
|
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected javax.servlet.ServletConfig config
protected String servletContextName
public final void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected void afterInit(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
config - the current servlet configurationjavax.servlet.ServletExceptionpublic final void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionHttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)protected boolean requirePortalEnvironment()
true if it requires the portal environment false otherwise.protected void onService(ExoContainer container, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
service is calledcontainer - the eXo containerreq - the HttpServletRequestres - the HttpServletResponsejavax.servlet.ServletExceptionIOExceptionprotected void onPortalEnvironmentError(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
req - the HttpServletRequestres - the HttpServletResponsejavax.servlet.ServletExceptionIOExceptionprotected final ExoContainer getContainer()
ExoContainer that fits best with the current contextpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.ServletConfiggetServletContext in class javax.servlet.GenericServletServletContextCopyright © 2014 eXo Platform SAS. All Rights Reserved.