Package jakarta.faces.webapp
Class FacesServlet
- java.lang.Object
-
- jakarta.faces.webapp.FacesServlet
-
- All Implemented Interfaces:
jakarta.servlet.Servlet
public final class FacesServlet extends Object implements jakarta.servlet.Servlet
see Javadoc of JSF Specification
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTOMATIC_EXTENSIONLESS_MAPPING_PARAM_NAME
TheServletContext
init parameter consulted by the runtime to tell if the automatic mapping of theFacesServlet
to the extensionless variant (without*.xhtml
) should be enabled.static String
CONFIG_FILES_ATTR
Comma separated list of URIs of (additional) faces config files.static String
DISABLE_FACESSERVLET_TO_XHTML_PARAM_NAME
Disable automatic FacesServlet xhtml mapping.static String
LIFECYCLE_ID_ATTR
Identify the Lifecycle instance to be used.
-
Constructor Summary
Constructors Constructor Description FacesServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
jakarta.servlet.ServletConfig
getServletConfig()
String
getServletInfo()
void
init(jakarta.servlet.ServletConfig servletConfig)
void
service(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response)
-
-
-
Field Detail
-
CONFIG_FILES_ATTR
@JSFWebConfigParam(since="1.1") public static final String CONFIG_FILES_ATTR
Comma separated list of URIs of (additional) faces config files. (e.g. /WEB-INF/my-config.xml)See JSF 1.0 PRD2, 10.3.2 Attention: You do not need to put /WEB-INF/faces-config.xml in here.- See Also:
- Constant Field Values
-
LIFECYCLE_ID_ATTR
@JSFWebConfigParam(since="1.1") public static final String LIFECYCLE_ID_ATTR
Identify the Lifecycle instance to be used.- See Also:
- Constant Field Values
-
DISABLE_FACESSERVLET_TO_XHTML_PARAM_NAME
@JSFWebConfigParam(since="2.3") public static final String DISABLE_FACESSERVLET_TO_XHTML_PARAM_NAME
Disable automatic FacesServlet xhtml mapping.- See Also:
- Constant Field Values
-
AUTOMATIC_EXTENSIONLESS_MAPPING_PARAM_NAME
@JSFWebConfigParam(since="4.0") public static final String AUTOMATIC_EXTENSIONLESS_MAPPING_PARAM_NAME
The
ServletContext
init parameter consulted by the runtime to tell if the automatic mapping of theFacesServlet
to the extensionless variant (without*.xhtml
) should be enabled. The implementation must enable this automatic mapping if and only if the value of this parameter is equal, ignoring case, totrue
.If this parameter is not specified, this automatic mapping is not enabled.
- See Also:
- Constant Field Values
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejakarta.servlet.Servlet
-
getServletConfig
public jakarta.servlet.ServletConfig getServletConfig()
- Specified by:
getServletConfig
in interfacejakarta.servlet.Servlet
-
getServletInfo
public String getServletInfo()
- Specified by:
getServletInfo
in interfacejakarta.servlet.Servlet
-
init
public void init(jakarta.servlet.ServletConfig servletConfig) throws jakarta.servlet.ServletException
- Specified by:
init
in interfacejakarta.servlet.Servlet
- Throws:
jakarta.servlet.ServletException
-
service
public void service(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) throws IOException, jakarta.servlet.ServletException
- Specified by:
service
in interfacejakarta.servlet.Servlet
- Throws:
IOException
jakarta.servlet.ServletException
-
-