Parse all relevant JavaServer Faces configuration resources, and configure the Reference Implementation runtime environment.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class | ConfigureListener.WebXmlProcessor
Processes a web application's deployment descriptor looking
for a reference to |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| protected WebappLifecycleListener | |
| protected WebConfiguration | |
| private ScheduledThreadPoolExecutor |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | attributeAdded(ServletRequestAttributeEvent
the ServletRequestAttributeEvent containing the
ServletRequest and the name and value of the attribute that was
added event)Overrides default javax. |
| public void | attributeAdded(HttpSessionBindingEvent
the HttpSessionBindingEvent containing the session
and the name and value of the attribute that was added event)Overrides default javax. |
| public void | attributeAdded(ServletContextAttributeEvent
the ServletContextAttributeEvent containing the
ServletContext to which the attribute was added, along with the
attribute name and value event)Overrides default javax. |
| public void | attributeRemoved(ServletRequestAttributeEvent
the ServletRequestAttributeEvent containing the
ServletRequest and the name and value of the attribute that was
removed event)Overrides default javax. |
| public void | attributeRemoved(HttpSessionBindingEvent
the HttpSessionBindingEvent containing the session
and the name and value of the attribute that was removed event)Overrides default javax. |
| public void | attributeRemoved(ServletContextAttributeEvent
the ServletContextAttributeEvent containing the
ServletContext from which the attribute was removed, along with
the attribute name and value event)Overrides default javax. |
| public void | attributeReplaced(ServletRequestAttributeEvent
the ServletRequestAttributeEvent containing the
ServletRequest and the name and (old) value of the attribute
that was replaced event)Overrides default javax. |
| public void | attributeReplaced(HttpSessionBindingEvent
the HttpSessionBindingEvent containing the session
and the name and (old) value of the attribute that was replaced event)Overrides default javax. |
| public void | attributeReplaced(ServletContextAttributeEvent event)
Overrides default javax. |
| public void | contextDestroyed(ServletContextEvent
the ServletContextEvent containing the ServletContext
that is being destroyed sce)Overrides default javax. |
| public void | contextInitialized(ServletContextEvent
the ServletContextEvent containing the ServletContext
that is being initialized sce)Overrides default javax. |
| private InitFacesContext | |
| private static String | |
| private void | |
| private boolean | |
| private boolean | |
| private static boolean | |
| public void | |
| private void | reload(ServletContext servletContext)
This method will be invoked |
| public void | requestDestroyed(ServletRequestEvent
the ServletRequestEvent containing the ServletRequest
and the ServletContext representing the web application event)Overrides default javax. |
| public void | requestInitialized(ServletRequestEvent
the ServletRequestEvent containing the ServletRequest
and the ServletContext representing the web application event)Overrides default javax. |
| public void | sessionCreated(HttpSessionEvent
the HttpSessionEvent containing the session event)Overrides default javax. |
| public void | sessionDestroyed(HttpSessionEvent
the HttpSessionEvent containing the session event)Overrides default javax. |
| private boolean |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| webAppListener | back to summary |
|---|---|
| protected WebappLifecycleListener webAppListener | |
| webConfig | back to summary |
|---|---|
| protected WebConfiguration webConfig | |
| webResourcePool | back to summary |
|---|---|
| private ScheduledThreadPoolExecutor webResourcePool | |
| ConfigureListener | back to summary |
|---|---|
| public ConfigureListener() | |
| attributeAdded | back to summary |
|---|---|
| public void attributeAdded(ServletRequestAttributeEvent event) Overrides default javax. Doc from javax. Receives notification that an attribute has been added to the ServletRequest.
| |
| attributeAdded | back to summary |
|---|---|
| public void attributeAdded(HttpSessionBindingEvent event) Overrides default javax. Doc from javax. Receives notification that an attribute has been added to a session.
| |
| attributeAdded | back to summary |
|---|---|
| public void attributeAdded(ServletContextAttributeEvent event) Overrides default javax. Doc from javax. Receives notification that an attribute has been added to the ServletContext.
| |
| attributeRemoved | back to summary |
|---|---|
| public void attributeRemoved(ServletRequestAttributeEvent event) Overrides default javax. Doc from javax. Receives notification that an attribute has been removed from the ServletRequest.
| |
| attributeRemoved | back to summary |
|---|---|
| public void attributeRemoved(HttpSessionBindingEvent event) Overrides default javax. Doc from javax. Receives notification that an attribute has been removed from a session.
| |
| attributeRemoved | back to summary |
|---|---|
| public void attributeRemoved(ServletContextAttributeEvent event) Overrides default javax. Doc from javax. Receives notification that an attribute has been removed from the ServletContext.
| |
| attributeReplaced | back to summary |
|---|---|
| public void attributeReplaced(ServletRequestAttributeEvent event) Overrides default javax. Doc from javax. Receives notification that an attribute has been replaced on the ServletRequest.
| |
| attributeReplaced | back to summary |
|---|---|
| public void attributeReplaced(HttpSessionBindingEvent event) Overrides default javax. Doc from javax. Receives notification that an attribute has been replaced in a session.
| |
| attributeReplaced | back to summary |
|---|---|
| public void attributeReplaced(ServletContextAttributeEvent event) Overrides default javax.
| |
| contextDestroyed | back to summary |
|---|---|
| public void contextDestroyed(ServletContextEvent sce) Overrides default javax. Doc from javax. Receives notification that the ServletContext is about to be shut down. All servlets and filters will have been destroyed before any ServletContextListeners are notified of context destruction.
| |
| contextInitialized | back to summary |
|---|---|
| public void contextInitialized(ServletContextEvent sce) Overrides default javax. Doc from javax. Receives notification that the web application initialization process is starting. All ServletContextListeners are notified of context initialization before any filters or servlets in the web application are initialized.
| |
| getInitFacesContext | back to summary |
|---|---|
| private InitFacesContext getInitFacesContext(ServletContext context) | |
| getServletContextIdentifier | back to summary |
|---|---|
| private static String getServletContextIdentifier(ServletContext context) | |
| initConfigMonitoring | back to summary |
|---|---|
| private void initConfigMonitoring(ServletContext context) | |
| installExpressionFactory | back to summary |
|---|---|
| private boolean installExpressionFactory(ServletContext sc, String elFactoryType) | |
| isDevModeEnabled | back to summary |
|---|---|
| private boolean isDevModeEnabled() | |
| isJspTwoOne | back to summary |
|---|---|
| private static boolean isJspTwoOne(ServletContext context) | |
| registerELResolverAndListenerWithJsp | back to summary |
|---|---|
| public void registerELResolverAndListenerWithJsp(ServletContext context, boolean reloaded) | |
| reload | back to summary |
|---|---|
| private void reload(ServletContext servletContext) This method will be invoked | |
| requestDestroyed | back to summary |
|---|---|
| public void requestDestroyed(ServletRequestEvent event) Overrides default javax. Doc from javax. Receives notification that a ServletRequest is about to go out of scope of the web application.
| |
| requestInitialized | back to summary |
|---|---|
| public void requestInitialized(ServletRequestEvent event) Overrides default javax. Doc from javax. Receives notification that a ServletRequest is about to come into scope of the web application.
| |
| sessionCreated | back to summary |
|---|---|
| public void sessionCreated(HttpSessionEvent event) Overrides default javax. Doc from javax. Receives notification that a session has been created.
| |
| sessionDestroyed | back to summary |
|---|---|
| public void sessionDestroyed(HttpSessionEvent event) Overrides default javax. Doc from javax. Receives notification that a session is about to be invalidated.
| |
| shouldInitConfigMonitoring | back to summary |
|---|---|
| private boolean shouldInitConfigMonitoring() | |
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private ServletContext |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| monitors | back to summary |
|---|---|
| private List<ConfigureListener. | |
| sc | back to summary |
|---|---|
| private ServletContext sc | |
| WebConfigResourceMonitor | back to summary |
|---|---|
| public WebConfigResourceMonitor(ServletContext sc, Collection<URI> uris) | |
| run | back to summary |
|---|---|
| public void run() Implements java. PENDING javadocs
| |
| Modifier and Type | Method and Description |
|---|---|
| private long | |
| pack-priv boolean |
| Monitor | back to summary |
|---|---|
| pack-priv Monitor(URI uri) throws IOException | |
| getLastModified | back to summary |
|---|---|
| private long getLastModified() throws IOException | |
| hasBeenModified | back to summary |
|---|---|
| pack-priv boolean hasBeenModified() throws IOException | |
Processes a web application's deployment descriptor looking
for a reference to javax.faces.webapp.FacesServlet.
| Modifier and Type | Class and Description |
|---|---|
| private class | ConfigureListener.WebXmlProcessor.WebXmlHandler
A simple SAX handler to process the elements of interested within a web application's deployment descriptor. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private boolean | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | WebXmlProcessor(ServletContext
the context)ServletContext for the application
of interestWhen instantiated, the web.xml of the current application
will be scanned looking for a references to the
|
| Modifier and Type | Method and Description |
|---|---|
| private SAXParserFactory | Returns: configuredSAXParserFactoryReturn a |
| public boolean | |
| pack-priv boolean | |
| pack-priv boolean | Returns: true if the WebXmlProcessor
detected a FacesServlet entry, otherwise return
false.
|
| private void | scanForFacesServlet(ServletContext
the ServletContext instance for this application context)Parse the web.xml for the current application and scan
for a FacesServlet entry, if found, set the
|
| private void |
| distributablePresent | back to summary |
|---|---|
| private boolean distributablePresent | |
| errorPagePresent | back to summary |
|---|---|
| private boolean errorPagePresent | |
| facesServletPresent | back to summary |
|---|---|
| private boolean facesServletPresent | |
| WEB_FRAGMENT_PATH | back to summary |
|---|---|
| private static final String WEB_FRAGMENT_PATH | |
| WEB_XML_PATH | back to summary |
|---|---|
| private static final String WEB_XML_PATH | |
| WebXmlProcessor | back to summary |
|---|---|
| pack-priv WebXmlProcessor(ServletContext context) When instantiated, the web.xml of the current application
will be scanned looking for a references to the
| |
| getConfiguredFactory | back to summary |
|---|---|
| private SAXParserFactory getConfiguredFactory() Return a
| |
| isDistributablePresent | back to summary |
|---|---|
| public boolean isDistributablePresent() | |
| isErrorPagePresent | back to summary |
|---|---|
pack-priv boolean isErrorPagePresent()
| |
| isFacesServletPresent | back to summary |
|---|---|
pack-priv boolean isFacesServletPresent()
| |
| scanForFacesServlet | back to summary |
|---|---|
| private void scanForFacesServlet(ServletContext context) Parse the web.xml for the current application and scan
for a FacesServlet entry, if found, set the
| |
| warnProcessingError | back to summary |
|---|---|
| private void warnProcessingError(Exception e, ServletContext sc) | |
A simple SAX handler to process the elements of interested within a web application's deployment descriptor.
| Modifier and Type | Field and Description |
|---|---|
| private StringBuffer | |
| private static final String | |
| private static final String | |
| private static final String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | characters(char[]
The characters. ch, int The start position in the character array. start, int The number of characters to use from the
character array. length)Overrides org. Implements org. |
| public void | endElement(String
The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed. uri, String The local name (without prefix), or the
empty string if Namespace processing is not being
performed. localName, String The qualified name (with prefix), or the
empty string if qualified names are not available. qName)Overrides org. Implements org. |
| public InputSource | resolveEntity(String
The public identifier, or null if none is
available. publicId, String The system identifier provided in the XML
document. systemId)Overrides org. Implements org. |
| public void | startElement(String
The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed. uri, String The local name (without prefix), or the
empty string if Namespace processing is not being
performed. localName, String The qualified name (with prefix), or the
empty string if qualified names are not available. qName, Attributes The attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object. attributes)Overrides org. Implements org. |
| content | back to summary |
|---|---|
private StringBuffer content
| |
| ERROR_PAGE | back to summary |
|---|---|
| private static final String ERROR_PAGE | |
| FACES_SERVLET | back to summary |
|---|---|
| private static final String FACES_SERVLET | |
| SERVLET_CLASS | back to summary |
|---|---|
| private static final String SERVLET_CLASS | |
| servletClassFound | back to summary |
|---|---|
| private boolean servletClassFound | |
| WebXmlHandler | back to summary |
|---|---|
| private WebXmlHandler() | |
| characters | back to summary |
|---|---|
| public void characters(char[] ch, int start, int length) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of character data inside an element. By default, do nothing. Application writers may override this method to take specific actions for each chunk of character data (such as adding the data to a node or buffer, or printing it to a file).
| |
| endElement | back to summary |
|---|---|
| public void endElement(String uri, String localName, String qName) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of the end of an element. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).
| |
| resolveEntity | back to summary |
|---|---|
| public InputSource resolveEntity(String publicId, String systemId) throws SAXException Overrides org. Implements org. Doc from org. Resolve an external entity. Always return null, so that the parser will use the system identifier provided in the XML document. This method implements the SAX default behaviour: application writers can override it in a subclass to do special translations such as catalog lookups or URI redirection.
| |
| startElement | back to summary |
|---|---|
| public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of the start of an element. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).
| |