org.apache.myfaces.tomahawk.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 (Mié, 16 Dic 2009) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)

Method Summary
 java.lang.String calculateResourceBasePath(javax.faces.context.FacesContext facesContext)
          Calculate the resource base path.
 java.lang.String getMapping()
          Get the mapping used as prefix(/faces) or sufix(.jsf)
 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(javax.faces.context.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()


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 © 2010 The Apache Software Foundation. All Rights Reserved.