Package com.webmethods.caf.faces.servlet
Class CAFFacesServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.webmethods.caf.faces.servlet.CAFFacesServlet
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
Faces servlet.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
protected Application
protected FacesContextFactory
protected String
protected String
protected Lifecycle
protected ServletConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkForAllowedMethod
(HttpServletRequest request, HttpServletResponse response) Check the request method to see if it is one of the allowed methods.void
destroy()
void
init
(ServletConfig servletConfig) protected void
renderDefaultFoot
(HttpServletRequest request, HttpServletResponse response, FacesContext context) protected void
renderDefaultHead
(HttpServletRequest request, HttpServletResponse response, FacesContext context) Auxiliary method for renderHead().protected void
renderFoot
(HttpServletRequest request, HttpServletResponse response, FacesContext context) protected void
renderHead
(HttpServletRequest request, HttpServletResponse response, FacesContext context) Auxiliary method for service().protected void
service
(HttpServletRequest request, HttpServletResponse response) protected boolean
Return true if a HEAD request should skip the render response phase.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, getServletInfo, getServletName, init, log, log
-
Field Details
-
INIT_PARAM_HEAD
- See Also:
-
INIT_PARAM_FOOT
- See Also:
-
m_application
-
m_facesContextFactory
-
m_lifecycle
-
m_servletConfig
-
m_head
-
m_foot
-
-
Constructor Details
-
CAFFacesServlet
public CAFFacesServlet()
-
-
Method Details
-
destroy
public void destroy()- Specified by:
destroy
in interfaceServlet
- Overrides:
destroy
in classGenericServlet
-
init
- Specified by:
init
in interfaceServlet
- Overrides:
init
in classGenericServlet
- Throws:
ServletException
-
checkForAllowedMethod
Check the request method to see if it is one of the allowed methods. If not a 405 error is returned. -
shouldSkipRenderPhaseForHeadRequest
protected boolean shouldSkipRenderPhaseForHeadRequest()Return true if a HEAD request should skip the render response phase. By default this returns true. A webapp can override this method if the HEAD request needs to be handled in some custom way.- Returns:
- true to skip render false otherwise
-
service
protected void service(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException - Overrides:
service
in classHttpServlet
- Throws:
IOException
ServletException
-
renderHead
protected void renderHead(HttpServletRequest request, HttpServletResponse response, FacesContext context) throws IOException, ServletException Auxiliary method for service(). Adds some tags to the beginning of the returned HTML.- Throws:
IOException
ServletException
-
renderDefaultHead
protected void renderDefaultHead(HttpServletRequest request, HttpServletResponse response, FacesContext context) throws IOException Auxiliary method for renderHead(). Adds the tags page_parameters to the beginning of the returned HTML.- Throws:
IOException
-
renderFoot
protected void renderFoot(HttpServletRequest request, HttpServletResponse response, FacesContext context) throws IOException, ServletException - Throws:
IOException
ServletException
-
renderDefaultFoot
protected void renderDefaultFoot(HttpServletRequest request, HttpServletResponse response, FacesContext context) throws IOException - Throws:
IOException
-