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: 700544 $ $Date: 2008-09-30 13:44:02 -0500 (Tue, 30 Sep 2008) $
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)
 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/*)
 

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:


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