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
JSF_SCRIPT_LIBRARY_NAME, JSF_SCRIPT_RESOURCE_NAME, 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
createResourceFromId, createViewResource, getRendererTypeForResourceName, getViewResources, getViewResources, getWrapped, handleResourceRequest, isResourceRendered, isResourceRequest, isResourceURL, libraryExists, markResourceRendered
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–2022 OmniFaces. All rights reserved.