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: 1187700 $ $Date: 2011-10-22 07:19:37 -0500 (Sat, 22 Oct 2011) $
Author:
Simon Lessard (latest modification by $Author: bommel $)

Field Summary
static String LOCALE_PREFIX
           
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
           
 
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)
           
abstract  String getRendererTypeForResourceName(String resourceName)
           
abstract  void handleResourceRequest(FacesContext context)
           
abstract  boolean isResourceRequest(FacesContext context)
           
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",
                   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
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)


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