public abstract class ResourceHandler extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LOCALE_PREFIX |
static String |
RESOURCE_CONTRACT_XML |
static String |
RESOURCE_EXCLUDES_DEFAULT_VALUE |
static String |
RESOURCE_EXCLUDES_PARAM_NAME
Space separated file extensions that will not be served by the default ResourceHandler implementation.
|
static String |
RESOURCE_IDENTIFIER |
static String |
WEBAPP_CONTRACTS_DIRECTORY_PARAM_NAME |
static String |
WEBAPP_RESOURCES_DIRECTORY_PARAM_NAME |
Constructor and Description |
---|
ResourceHandler() |
Modifier and Type | Method and Description |
---|---|
abstract Resource |
createResource(String resourceName) |
abstract Resource |
createResource(String resourceName,
String libraryName) |
abstract Resource |
createResource(String resourceName,
String libraryName,
String contentType) |
Resource |
createResourceFromId(String resourceId) |
ViewResource |
createViewResource(FacesContext context,
String resourceName) |
abstract String |
getRendererTypeForResourceName(String resourceName) |
abstract void |
handleResourceRequest(FacesContext context) |
abstract boolean |
isResourceRequest(FacesContext context) |
boolean |
isResourceURL(String url) |
abstract boolean |
libraryExists(String libraryName) |
public static final String LOCALE_PREFIX
public static final String RESOURCE_EXCLUDES_DEFAULT_VALUE
@JSFWebConfigParam(defaultValue=".class .jsp .jspx .properties .xhtml .groovy", since="2.0", group="resources") public static final String RESOURCE_EXCLUDES_PARAM_NAME
public static final String RESOURCE_IDENTIFIER
public static final String RESOURCE_CONTRACT_XML
public static final String WEBAPP_CONTRACTS_DIRECTORY_PARAM_NAME
public static final String WEBAPP_RESOURCES_DIRECTORY_PARAM_NAME
public abstract Resource createResource(String resourceName, String libraryName, String contentType)
public abstract String getRendererTypeForResourceName(String resourceName)
public abstract void handleResourceRequest(FacesContext context) throws IOException
IOException
public abstract boolean isResourceRequest(FacesContext context)
public abstract boolean libraryExists(String libraryName)
public Resource createResourceFromId(String resourceId)
resourceId
- public ViewResource createViewResource(FacesContext context, String resourceName)
context
- resourceName
- public boolean isResourceURL(String url)
Copyright © 2020 The Apache Software Foundation. All rights reserved.