javax.faces.application
Class ResourceHandler

java.lang.Object
  extended by javax.faces.application.ResourceHandler
Direct Known Subclasses:
ResourceHandlerWrapper

public abstract class ResourceHandler
extends Object

Since:
2.0
Version:
$Revision: 1488347 $ $Date: 2013-05-31 13:30:47 -0500 (Fri, 31 May 2013) $
Author:
Simon Lessard (latest modification by $Author: lu4242 $)

Field Summary
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 Summary
ResourceHandler()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALE_PREFIX

public static final String LOCALE_PREFIX
See Also:
Constant Field Values

RESOURCE_EXCLUDES_DEFAULT_VALUE

public static final String RESOURCE_EXCLUDES_DEFAULT_VALUE
See Also:
Constant Field Values

RESOURCE_EXCLUDES_PARAM_NAME

@JSFWebConfigParam(defaultValue=".class .jsp .jspx .properties .xhtml .groovy",
                   since="2.0",
                   group="resources")
public static final String RESOURCE_EXCLUDES_PARAM_NAME
Space separated file extensions that will not be served by the default ResourceHandler implementation.

See Also:
Constant Field Values

RESOURCE_IDENTIFIER

public static final String RESOURCE_IDENTIFIER
See Also:
Constant Field Values

RESOURCE_CONTRACT_XML

public static final String RESOURCE_CONTRACT_XML
Since:
2.2
See Also:
Constant Field Values

WEBAPP_CONTRACTS_DIRECTORY_PARAM_NAME

public static final String WEBAPP_CONTRACTS_DIRECTORY_PARAM_NAME
Since:
2.2
See Also:
Constant Field Values

WEBAPP_RESOURCES_DIRECTORY_PARAM_NAME

public static final String WEBAPP_RESOURCES_DIRECTORY_PARAM_NAME
Since:
2.2
See Also:
Constant Field Values
Constructor Detail

ResourceHandler

public ResourceHandler()
Method Detail

createResource

public abstract Resource createResource(String resourceName)

createResource

public abstract Resource createResource(String resourceName,
                                        String libraryName)

createResource

public abstract Resource createResource(String resourceName,
                                        String libraryName,
                                        String contentType)

getRendererTypeForResourceName

public abstract String getRendererTypeForResourceName(String resourceName)

handleResourceRequest

public abstract void handleResourceRequest(FacesContext context)
                                    throws IOException
Throws:
IOException

isResourceRequest

public abstract boolean isResourceRequest(FacesContext context)

libraryExists

public abstract boolean libraryExists(String libraryName)

createResourceFromId

public Resource createResourceFromId(String resourceId)
Parameters:
resourceId -
Returns:
Since:
2.2

createViewResource

public ViewResource createViewResource(FacesContext context,
                                       String resourceName)
Parameters:
context -
resourceName -
Returns:
Since:
2.2

isResourceURL

public boolean isResourceURL(String url)


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.