|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.application.DefaultResourceHandlerSupport
public class DefaultResourceHandlerSupport
A ResourceHandlerSupport implementation for use with standard Java Servlet engines, ie an engine that supports javax.servlet, and uses a standard web.xml file.
Constructor Summary | |
---|---|
DefaultResourceHandlerSupport()
|
Method Summary | |
---|---|
protected static DefaultViewHandlerSupport.FacesServletMapping |
calculateFacesServletMapping(java.lang.String servletPath,
java.lang.String pathInfo)
Determines the mapping of the FacesServlet in the web.xml configuration file. |
java.lang.String |
calculateResourceBasePath(FacesContext facesContext)
Calculate the resource base path. |
protected DefaultViewHandlerSupport.FacesServletMapping |
getFacesServletMapping(FacesContext context)
Read the web.xml file that is in the classpath and parse its internals to figure out how the FacesServlet is mapped for the current webapp. |
java.lang.String |
getMapping()
Get the mapping used as prefix(/faces) or sufix(.jsf) |
ResourceLoader[] |
getResourceLoaders()
Return an array of resource loaders used to find resources using the standard. |
boolean |
isExtensionMapping()
Check if the mapping used is done using extensions (.xhtml, .jsf) or if it is not (/faces/*) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultResourceHandlerSupport()
Method Detail |
---|
public java.lang.String calculateResourceBasePath(FacesContext facesContext)
ResourceHandlerSupport
calculateResourceBasePath
in interface ResourceHandlerSupport
public ResourceLoader[] getResourceLoaders()
ResourceHandlerSupport
getResourceLoaders
in interface ResourceHandlerSupport
public boolean isExtensionMapping()
ResourceHandlerSupport
isExtensionMapping
in interface ResourceHandlerSupport
public java.lang.String getMapping()
ResourceHandlerSupport
getMapping
in interface ResourceHandlerSupport
protected DefaultViewHandlerSupport.FacesServletMapping getFacesServletMapping(FacesContext context)
protected static DefaultViewHandlerSupport.FacesServletMapping calculateFacesServletMapping(java.lang.String servletPath, java.lang.String pathInfo)
servletPath
- The servletPath of the current requestpathInfo
- The pathInfo of the current request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |