|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.shared.resource.ResourceHandlerSupport
org.apache.myfaces.shared.resource.BaseResourceHandlerSupport
public class BaseResourceHandlerSupport
A ResourceHandlerSupport implementation for use with standard Java Servlet engines, ie an engine that supports javax.servlet, and uses a standard web.xml file.
Field Summary | |
---|---|
static String |
RESOURCE_MAX_TIME_EXPIRES
Set the max time in miliseconds set on the "Expires" header for a resource. |
Constructor Summary | |
---|---|
BaseResourceHandlerSupport()
|
Method Summary | |
---|---|
protected static FacesServletMapping |
calculateFacesServletMapping(String servletPath,
String pathInfo)
Determines the mapping of the FacesServlet in the web.xml configuration file. |
String |
calculateResourceBasePath(FacesContext facesContext)
Calculate the resource base path. |
protected 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. |
String |
getMapping()
Get the mapping used as prefix(/faces) or sufix(.jsf) |
long |
getMaxTimeExpires()
Return the time that should be set on "Expires" header in a resource. |
ResourceLoader[] |
getResourceLoaders()
Return an array of resource loaders used to find resources using the standard. |
long |
getStartupTime()
Return the time when the app started. |
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 |
Field Detail |
---|
@JSFWebConfigParam(since="2.0", defaultValue="604800000") public static final String RESOURCE_MAX_TIME_EXPIRES
Constructor Detail |
---|
public BaseResourceHandlerSupport()
Method Detail |
---|
public ResourceLoader[] getResourceLoaders()
ResourceHandlerSupport
getResourceLoaders
in class ResourceHandlerSupport
public String calculateResourceBasePath(FacesContext facesContext)
ResourceHandlerSupport
calculateResourceBasePath
in class ResourceHandlerSupport
public boolean isExtensionMapping()
ResourceHandlerSupport
isExtensionMapping
in class ResourceHandlerSupport
public String getMapping()
ResourceHandlerSupport
getMapping
in class ResourceHandlerSupport
protected FacesServletMapping getFacesServletMapping(FacesContext context)
protected static FacesServletMapping calculateFacesServletMapping(String servletPath, String pathInfo)
servletPath
- The servletPath of the current requestpathInfo
- The pathInfo of the current request
public long getStartupTime()
ResourceHandlerSupport
getStartupTime
in class ResourceHandlerSupport
public long getMaxTimeExpires()
ResourceHandlerSupport
getMaxTimeExpires
in class ResourceHandlerSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |