org.apache.myfaces.spi.impl
Class DefaultWebConfigProvider

java.lang.Object
  extended by org.apache.myfaces.spi.WebConfigProvider
      extended by org.apache.myfaces.spi.impl.DefaultWebConfigProvider

public class DefaultWebConfigProvider
extends WebConfigProvider

The default WebXmlProvider implementation. This impl uses the WebXmlParser to create a new instance of WebXmlImpl.

Author:
Jakob Korherr

Constructor Summary
DefaultWebConfigProvider()
           
 
Method Summary
 List<ServletMapping> getFacesServletMappings(ExternalContext externalContext)
          Return the mappings configured on web.xml related to JSF FacesServlet.
 boolean isErrorPagePresent(ExternalContext externalContext)
          Indicate if an error page is configured on web.xml file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWebConfigProvider

public DefaultWebConfigProvider()
Method Detail

getFacesServletMappings

public List<ServletMapping> getFacesServletMappings(ExternalContext externalContext)
Description copied from class: WebConfigProvider
Return the mappings configured on web.xml related to JSF FacesServlet.

By default, the algorithm contemplate these three options:

  1. Mappings related to registered servlet class javax.faces.webapp.FacesServlet.
  2. Mappings related to registered servlet class implementing org.apache.myfaces.shared_impl.webapp.webxml.DelegatedFacesServlet interface.
  3. Mappings related to registered servlet class registered using org.apache.myfaces.DELEGATE_FACES_SERVLET web config param.

Specified by:
getFacesServletMappings in class WebConfigProvider
Returns:

isErrorPagePresent

public boolean isErrorPagePresent(ExternalContext externalContext)
Description copied from class: WebConfigProvider
Indicate if an error page is configured on web.xml file

Specified by:
isErrorPagePresent in class WebConfigProvider
Returns:


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.