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_FOUNDLOCALE_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, getWrappedcreateResourceFromId, createViewResource, getRendererTypeForResourceName, handleResourceRequest, isResourceRequest, isResourceURL, libraryExistspublic 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–2016 OmniFaces. All rights reserved.