org.apache.myfaces.application
Class ResourceHandlerImpl
java.lang.Object
javax.faces.application.ResourceHandler
org.apache.myfaces.application.ResourceHandlerImpl
public class ResourceHandlerImpl
- extends ResourceHandler
DOCUMENT ME!
- Version:
- $Revision: 1238687 $ $Date: 2012-01-31 11:36:49 -0500 (Tue, 31 Jan 2012) $
- Author:
- Simon Lessard (latest modification by $Author: lu4242 $)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INIT_PARAM_STRICT_JSF_2_ALLOW_SLASH_LIBRARY_NAME
@JSFWebConfigParam(since="2.1.6, 2.0.12",
defaultValue="false",
expectedValues="true, false",
group="resources")
public static final String INIT_PARAM_STRICT_JSF_2_ALLOW_SLASH_LIBRARY_NAME
- Allow slash in the library name of a Resource.
- See Also:
- Constant Field Values
INIT_PARAM_STRICT_JSF_2_ALLOW_SLASH_LIBRARY_NAME_DEFAULT
public static final boolean INIT_PARAM_STRICT_JSF_2_ALLOW_SLASH_LIBRARY_NAME_DEFAULT
- See Also:
- Constant Field Values
ResourceHandlerImpl
public ResourceHandlerImpl()
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
deriveResourceMeta
protected ResourceMeta deriveResourceMeta(ResourceLoader resourceLoader,
String resourceName,
String libraryName,
String localePrefix)
- 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 String getRendererTypeForResourceName(String resourceName)
- Specified by:
getRendererTypeForResourceName
in class ResourceHandler
handleResourceRequest
public void handleResourceRequest(FacesContext facesContext)
throws 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 ResourceHandler
- Throws:
IOException
isResourceRequest
public boolean isResourceRequest(FacesContext facesContext)
- Specified by:
isResourceRequest
in class ResourceHandler
getLocalePrefixForLocateResource
protected String getLocalePrefixForLocateResource()
isResourceIdentifierExcluded
protected boolean isResourceIdentifierExcluded(FacesContext context,
String resourceIdentifier)
libraryExists
public boolean libraryExists(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 ResourceHandler
setResourceHandlerSupport
public void setResourceHandlerSupport(ResourceHandlerSupport resourceHandlerSupport)
- Parameters:
resourceHandlerSupport
- the resourceHandlerSupport to set
getResourceHandlerSupport
protected ResourceHandlerSupport getResourceHandlerSupport()
- Returns:
- the resourceHandlerSupport
isAllowSlashesLibraryName
protected boolean isAllowSlashesLibraryName()
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.