org.apache.myfaces.application
Interface ResourceHandlerSupport

All Known Implementing Classes:
DefaultResourceHandlerSupport

public interface ResourceHandlerSupport

A utility class to isolate a ResourceHandler implementation from its underlying implementation

Version:
$Revision: 891494 $ $Date: 2009-12-16 19:42:18 -0500 (Wed, 16 Dec 2009) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)

Method Summary
 java.lang.String calculateResourceBasePath(FacesContext facesContext)
          Calculate the resource base path.
 java.lang.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/*)
 

Method Detail

calculateResourceBasePath

java.lang.String calculateResourceBasePath(FacesContext facesContext)
Calculate the resource base path. It should extract a string like: ResourceHandler.RESOURCE_IDENTIFIER + '/' + getResourceName() For example: /javax.faces.resource/image.jpg This is used on ResourceHandler.handleResourceRequest()


getResourceLoaders

ResourceLoader[] getResourceLoaders()
Return an array of resource loaders used to find resources using the standard. The order of ResourceLoaders define its precedence.

Returns:

isExtensionMapping

boolean isExtensionMapping()
Check if the mapping used is done using extensions (.xhtml, .jsf) or if it is not (/faces/*)

Returns:

getMapping

java.lang.String getMapping()
Get the mapping used as prefix(/faces) or sufix(.jsf)

Returns:

getStartupTime

long getStartupTime()
Return the time when the app started. This is useful to set the "Last-Modified" header in some specific cases.

Returns:

getMaxTimeExpires

long getMaxTimeExpires()
Return the time that should be set on "Expires" header in a resource.

Returns:


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