javax.faces.application
Class ResourceHandlerWrapper

java.lang.Object
  extended by javax.faces.application.ResourceHandler
      extended by javax.faces.application.ResourceHandlerWrapper
All Implemented Interfaces:
FacesWrapper<ResourceHandler>

public abstract class ResourceHandlerWrapper
extends ResourceHandler
implements FacesWrapper<ResourceHandler>

Since:
2.0
Version:
$Revision: 696523 $ $Date: 2008-09-24 18:31:37 -0400 (mer., 17 sept. 2008) $
Author:
Simon Lessard (latest modification by $Author: slessard $)

Field Summary
 
Fields inherited from class javax.faces.application.ResourceHandler
LOCALE_PREFIX, RESOURCE_EXCLUDES_DEFAULT_VALUE, RESOURCE_EXCLUDES_PARAM_NAME, RESOURCE_IDENTIFIER
 
Constructor Summary
ResourceHandlerWrapper()
           
 
Method Summary
 Resource createResource(String resourceName)
           
 Resource createResource(String resourceName, String libraryName)
           
 Resource createResource(String resourceName, String libraryName, String contentType)
           
 String getRendererTypeForResourceName(String resourceName)
           
abstract  ResourceHandler getWrapped()
          A class that implements this interface uses this method to return an instance of the class being wrapped.
 void handleResourceRequest(FacesContext context)
           
 boolean isResourceRequest(FacesContext context)
           
 boolean libraryExists(String libraryName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceHandlerWrapper

public ResourceHandlerWrapper()
Method Detail

createResource

public Resource createResource(String resourceName)
Specified by:
createResource in class ResourceHandler

createResource

public Resource createResource(String resourceName,
                               String libraryName)
Specified by:
createResource in class ResourceHandler

createResource

public Resource createResource(String resourceName,
                               String libraryName,
                               String contentType)
Specified by:
createResource in class ResourceHandler

getRendererTypeForResourceName

public String getRendererTypeForResourceName(String resourceName)
Specified by:
getRendererTypeForResourceName in class ResourceHandler

handleResourceRequest

public void handleResourceRequest(FacesContext context)
                           throws IOException
Specified by:
handleResourceRequest in class ResourceHandler
Throws:
IOException

isResourceRequest

public boolean isResourceRequest(FacesContext context)
Specified by:
isResourceRequest in class ResourceHandler

libraryExists

public boolean libraryExists(String libraryName)
Specified by:
libraryExists in class ResourceHandler

getWrapped

public abstract ResourceHandler getWrapped()
Description copied from interface: FacesWrapper
A class that implements this interface uses this method to return an instance of the class being wrapped.

Specified by:
getWrapped in interface FacesWrapper<ResourceHandler>
Returns:
the instance of the class being wrapped


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