|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.commons.resourcehandler.resource.ResourceHandlerSupport
org.apache.myfaces.commons.resourcehandler.resource.BaseResourceHandlerSupport
org.apache.myfaces.commons.resourcehandler.ExtendedDefaultResourceHandlerSupport
public class ExtendedDefaultResourceHandlerSupport
Field Summary | |
---|---|
protected static String |
CACHED_SERVLET_MAPPING
|
static String |
INIT_PARAM_CACHE_DISK_GZIP_RESOURCES
Indicate if gzipped files are stored on a temporal directory to serve them later. |
static String |
INIT_PARAM_EXTENDED_RESOURCE_IDENTIFIER
Indicate the prefix that is added to each resource path that is used later to check if the request is a resource request. |
static String |
INIT_PARAM_GZIP_RESOURCES_ENABLED
Enable or disable gzip compressions for resources served by this extended resource handler. |
static String |
INIT_PARAM_GZIP_RESOURCES_EXTENSIONS_DEFAULT
|
static String |
INIT_PARAM_GZIP_RESOURCES_SUFFIX
Indicate the suffix used to recognize resources that should be compressed. |
Fields inherited from class org.apache.myfaces.commons.resourcehandler.resource.BaseResourceHandlerSupport |
---|
RESOURCE_MAX_TIME_EXPIRES |
Constructor Summary | |
---|---|
ExtendedDefaultResourceHandlerSupport()
|
Method Summary | |
---|---|
String |
calculateResourceBasePath(javax.faces.context.FacesContext facesContext)
Calculate the resource base path. |
protected FacesServletMapping |
getFacesServletMapping(javax.faces.context.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[] |
getGzipResourcesSuffixes()
|
MyFacesResourcesConfig |
getMyFacesResourcesConfig()
|
String |
getResourceIdentifier()
|
ResourceLoader[] |
getResourceLoaders()
Return the resource loaders used. |
WebConfigProvider |
getWebConfigProvider()
|
boolean |
isCacheDiskGzipResources()
|
boolean |
isCompressable(javax.faces.application.Resource resource)
|
boolean |
isCompressable(ResourceMeta resourceMeta)
|
boolean |
isGzipResourcesEnabled()
|
boolean |
userAgentSupportsCompression(javax.faces.context.FacesContext facesContext)
|
Methods inherited from class org.apache.myfaces.commons.resourcehandler.resource.BaseResourceHandlerSupport |
---|
calculateFacesServletMapping, getMapping, getMaxTimeExpires, getStartupTime, isExtensionMapping |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String CACHED_SERVLET_MAPPING
@JSFWebConfigParam(defaultValue="false") public static final String INIT_PARAM_GZIP_RESOURCES_ENABLED
@JSFWebConfigParam(defaultValue=".css, .js") public static final String INIT_PARAM_GZIP_RESOURCES_SUFFIX
public static final String INIT_PARAM_GZIP_RESOURCES_EXTENSIONS_DEFAULT
@JSFWebConfigParam(defaultValue="true") public static final String INIT_PARAM_CACHE_DISK_GZIP_RESOURCES
@JSFWebConfigParam(defaultValue="/javax.faces.resource") public static final String INIT_PARAM_EXTENDED_RESOURCE_IDENTIFIER
Constructor Detail |
---|
public ExtendedDefaultResourceHandlerSupport()
Method Detail |
---|
public MyFacesResourcesConfig getMyFacesResourcesConfig()
public String[] getGzipResourcesSuffixes()
public boolean isGzipResourcesEnabled()
public boolean isCacheDiskGzipResources()
public boolean isCompressable(ResourceMeta resourceMeta)
public boolean isCompressable(javax.faces.application.Resource resource)
public boolean userAgentSupportsCompression(javax.faces.context.FacesContext facesContext)
public String calculateResourceBasePath(javax.faces.context.FacesContext facesContext)
ResourceHandlerSupport
calculateResourceBasePath
in class BaseResourceHandlerSupport
protected FacesServletMapping getFacesServletMapping(javax.faces.context.FacesContext context)
BaseResourceHandlerSupport
getFacesServletMapping
in class BaseResourceHandlerSupport
public ResourceLoader[] getResourceLoaders()
getResourceLoaders
in class BaseResourceHandlerSupport
public WebConfigProvider getWebConfigProvider()
public String getResourceIdentifier()
getResourceIdentifier
in class ResourceHandlerSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |