org.apache.myfaces.application
Class ResourceHandlerImpl
java.lang.Object
javax.faces.application.ResourceHandler
org.apache.myfaces.application.ResourceHandlerImpl
public class ResourceHandlerImpl
- extends javax.faces.application.ResourceHandler
DOCUMENT ME!
- Version:
- $Revision: 696515 $ $Date: 2008-09-17 19:37:53 -0500 (mer., 17 sept. 2008) $
- Author:
- Simon Lessard (latest modification by $Author: slessard $)
Fields inherited from class javax.faces.application.ResourceHandler |
LOCALE_PREFIX, RESOURCE_EXCLUDES_DEFAULT_VALUE, RESOURCE_EXCLUDES_PARAM_NAME, RESOURCE_IDENTIFIER |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceHandlerImpl
public ResourceHandlerImpl()
createResource
public javax.faces.application.Resource createResource(java.lang.String resourceName)
- Specified by:
createResource
in class javax.faces.application.ResourceHandler
createResource
public javax.faces.application.Resource createResource(java.lang.String resourceName,
java.lang.String libraryName)
- Specified by:
createResource
in class javax.faces.application.ResourceHandler
createResource
public javax.faces.application.Resource createResource(java.lang.String resourceName,
java.lang.String libraryName,
java.lang.String contentType)
- Specified by:
createResource
in class javax.faces.application.ResourceHandler
deriveResourceMeta
protected ResourceMeta deriveResourceMeta(ResourceLoader resourceLoader,
java.lang.String resourceName,
java.lang.String libraryName)
- This method try to create a ResourceMeta for a specific resource
loader. If no library, or resource is found, just return null,
so the algorithm in createResource can continue checking with the
next registered ResourceLoader.
getRendererTypeForResourceName
public java.lang.String getRendererTypeForResourceName(java.lang.String resourceName)
- Specified by:
getRendererTypeForResourceName
in class javax.faces.application.ResourceHandler
handleResourceRequest
public void handleResourceRequest(javax.faces.context.FacesContext facesContext)
throws java.io.IOException
- Handle the resource request, writing in the output.
This method implements an algorithm semantically identical to
the one described on the javadoc of ResourceHandler.handleResourceRequest
- Specified by:
handleResourceRequest
in class javax.faces.application.ResourceHandler
- Throws:
java.io.IOException
isResourceRequest
public boolean isResourceRequest(javax.faces.context.FacesContext facesContext)
- Specified by:
isResourceRequest
in class javax.faces.application.ResourceHandler
getLocalePrefixForLocateResource
protected java.lang.String getLocalePrefixForLocateResource()
isResourceIdentifierExcluded
protected boolean isResourceIdentifierExcluded(javax.faces.context.FacesContext context,
java.lang.String resourceIdentifier)
libraryExists
public boolean libraryExists(java.lang.String libraryName)
- Check if a library exists or not. This is done delegating
to each ResourceLoader used, because each one has a different
prefix and way to load resources.
- Specified by:
libraryExists
in class javax.faces.application.ResourceHandler
setResourceHandlerSupport
public void setResourceHandlerSupport(ResourceHandlerSupport resourceHandlerSupport)
- Parameters:
resourceHandlerSupport
- the resourceHandlerSupport to set
getResourceHandlerSupport
protected ResourceHandlerSupport getResourceHandlerSupport()
- Returns:
- the resourceHandlerSupport
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.