|
||||||||
| 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.esupportail.commons.web.servlet.FacesServlet
public class FacesServlet
A JSF-based servlet that catches exception and gives them to an exception service. see Javadoc of JSF Specification
| Field Summary | |
|---|---|
private static java.lang.String |
DEFAULT_DEFAULT_VIEW
The default default view. |
private static java.lang.String |
DEFAULT_REDIRECTOR_NAME
The default name of the redirector. |
private static java.lang.String |
DEFAULT_VIEW_PARAM
The name of the servlet parameter that gives the name of the redirector. |
private java.lang.String |
defaultView
The default view. |
private javax.faces.context.FacesContextFactory |
facesContextFactory
The context factory. |
private javax.faces.lifecycle.Lifecycle |
lifecycle
The lifecycle. |
private Logger |
logger
A logger. |
private static java.lang.String |
REDIRECTOR_NAME_PARAM
The name of the servlet parameter that gives the name of the redirector. |
private java.lang.String |
redirectorName
The name of the redirector. |
private static long |
serialVersionUID
The id for serialization. |
private static java.lang.String |
SERVLET_INFO
The servlet info. |
| Constructor Summary | |
|---|---|
FacesServlet()
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
catchException(java.lang.Exception exception,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Catch an exception. |
protected void |
checkVersion()
Check the version of the application and throw a ConfigException if the servlet can not be executed (for instance if the version of the application and the one of the database do not match). |
void |
destroy()
|
private java.lang.String |
getLifecycleId()
|
private java.util.Map<java.lang.String,java.lang.String> |
getParams(javax.servlet.http.HttpServletRequest request)
|
private DeepLinkingRedirector |
getRedirector(javax.faces.context.FacesContext facesContext)
|
java.lang.String |
getServletInfo()
|
private void |
handleExceptionHandlingException(java.lang.Exception e)
Wrap exceptions thrown when already catching an exception. |
void |
init(javax.servlet.ServletConfig servletConfig)
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String DEFAULT_DEFAULT_VIEW
private static final java.lang.String DEFAULT_REDIRECTOR_NAME
private static final java.lang.String DEFAULT_VIEW_PARAM
private java.lang.String defaultView
private javax.faces.context.FacesContextFactory facesContextFactory
private javax.faces.lifecycle.Lifecycle lifecycle
private final Logger logger
private static final java.lang.String REDIRECTOR_NAME_PARAM
private java.lang.String redirectorName
private static final long serialVersionUID
private static final java.lang.String SERVLET_INFO
| Constructor Detail |
|---|
public FacesServlet()
| Method Detail |
|---|
protected void catchException(java.lang.Exception exception,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
exception - request - response -
javax.servlet.ServletException
java.io.IOException
protected void checkVersion()
throws ConfigException
ConfigExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletServlet.destroy()private java.lang.String getLifecycleId()
private java.util.Map<java.lang.String,java.lang.String> getParams(javax.servlet.http.HttpServletRequest request)
private DeepLinkingRedirector getRedirector(javax.faces.context.FacesContext facesContext)
public java.lang.String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServletServlet.getServletInfo()
private void handleExceptionHandlingException(java.lang.Exception e)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void init(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionServlet.init(javax.servlet.ServletConfig)
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
service in class javax.servlet.http.HttpServletjava.io.IOException
javax.servlet.ServletExceptionHttpServlet.service(
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||