public class GraphicResourceHandler extends DefaultResourceHandler
This ResourceHandler
implementation deals with GraphicResource
requests.
Modifier and Type | Field and Description |
---|---|
static String |
LIBRARY_NAME
The default library name of a graphic resource.
|
LOCALE_PREFIX, RESOURCE_CONTRACT_XML, RESOURCE_EXCLUDES_DEFAULT_VALUE, RESOURCE_EXCLUDES_PARAM_NAME, RESOURCE_IDENTIFIER, WEBAPP_CONTRACTS_DIRECTORY_PARAM_NAME, WEBAPP_RESOURCES_DIRECTORY_PARAM_NAME
Constructor and Description |
---|
GraphicResourceHandler(ResourceHandler wrapped)
Creates a new instance of this combined resource handler which wraps the given resource handler.
|
Modifier and Type | Method and Description |
---|---|
Resource |
createResource(String resourceName,
String libraryName,
String contentType)
Delegate to the right
createResource() method of the wrapped resource handler. |
createResource, createResource, getWrapped
createResourceFromId, createViewResource, getRendererTypeForResourceName, handleResourceRequest, isResourceRequest, isResourceURL, libraryExists
public static final String LIBRARY_NAME
public GraphicResourceHandler(ResourceHandler wrapped)
wrapped
- The resource handler to be wrapped.public Resource createResource(String resourceName, String libraryName, String contentType)
DefaultResourceHandler
createResource()
method of the wrapped resource handler. Some resource handler
implementations namely doesn't implement all the three createResource()
methods.createResource
in class DefaultResourceHandler
Copyright © 2012–2014 OmniFaces. All rights reserved.