public class GraphicResourceHandler extends DefaultResourceHandler
 This ResourceHandler implementation deals with GraphicResource requests.
| Modifier and Type | Field and Description | 
|---|---|
| static String | LIBRARY_NAMEThe default library name of a graphic resource. | 
RES_NOT_FOUNDJSF_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, decorateResourcecreateResourceFromId, createViewResource, getRendererTypeForResourceName, getViewResources, getViewResources, getWrapped, handleResourceRequest, isResourceRendered, isResourceRequest, isResourceURL, libraryExists, markResourceRenderedpublic static final String LIBRARY_NAME
public GraphicResourceHandler(ResourceHandler wrapped)
wrapped - The resource handler to be wrapped.public String getLibraryName()
LIBRARY_NAME.getLibraryName in class DefaultResourceHandlerpublic Resource createResourceFromLibrary(String resourceName, String contentType)
GraphicResource.createResourceFromLibrary in class DefaultResourceHandlerresourceName - The resource name.contentType - The content type.Copyright © 2012–2020 OmniFaces. All rights reserved.