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.
|
RES_NOT_FOUND
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 graphic resource handler which wraps the given resource handler.
|
Modifier and Type | Method and Description |
---|---|
Resource |
createResourceFromLibrary(String resourceName,
String contentType)
Returns a new
GraphicResource . |
String |
getLibraryName()
Returns
LIBRARY_NAME . |
createResource, createResource, createResource, decorateResource, decorateResource, 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 String getLibraryName()
LIBRARY_NAME
.getLibraryName
in class DefaultResourceHandler
public Resource createResourceFromLibrary(String resourceName, String contentType)
GraphicResource
.createResourceFromLibrary
in class DefaultResourceHandler
resourceName
- The resource name.contentType
- The content type.Copyright © 2012–2018 OmniFaces. All rights reserved.