|
eXo Kernel :: Container 2.4.11-UXP01 | |||||||||
| 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
org.exoplatform.container.web.AbstractHttpServlet
public abstract class AbstractHttpServlet
Created by The eXo Platform SAS Author : Nicolas Filotto nicolas.filotto@exoplatform.com 29 sept. 2009
| Field Summary | |
|---|---|
protected javax.servlet.ServletConfig |
config
The filter configuration |
protected String |
servletContextName
The Servlet context name |
| Constructor Summary | |
|---|---|
AbstractHttpServlet()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, 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 |
|---|
protected javax.servlet.ServletConfig config
protected String servletContextName
| Constructor Detail |
|---|
public AbstractHttpServlet()
| Method Detail |
|---|
public final void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletException
protected void afterInit(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
config - the current servlet configuration
javax.servlet.ServletException
public 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.ServletException
IOExceptionHttpServlet.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 called
container - the eXo containerreq - the HttpServletRequestres - the HttpServletResponse
javax.servlet.ServletException
IOException
protected void onPortalEnvironmentError(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
req - the HttpServletRequestres - the HttpServletResponse
javax.servlet.ServletException
IOExceptionprotected 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.GenericServletServletContext
|
eXo Kernel :: Container 2.4.11-UXP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||