com.liferay.faces.bridge.application
Class ResourceHandlerOuterImpl

java.lang.Object
  extended by javax.faces.application.ResourceHandler
      extended by javax.faces.application.ResourceHandlerWrapper
          extended by com.liferay.faces.bridge.application.ResourceHandlerOuterImpl
All Implemented Interfaces:
javax.faces.FacesWrapper<javax.faces.application.ResourceHandler>

public class ResourceHandlerOuterImpl
extends javax.faces.application.ResourceHandlerWrapper

Unlike the ResourceHandlerInnerImpl class, this class is designed to be the outermost ResourceHandler in the chain-of-responsibility. In order to achieve this outermost status, this class does not appear in the bridge's faces-config.xml descriptor. Rather, it is created by the ApplicationCompatImpl.getResourceHandler() method. If necessary, it wraps resources with ResourceHandlerWrapper instances that override the Resource.getRequestPath() method. This provides the bridge with the opportunity to have the final authority regarding the format of resource URLs created by ResourceHandlers like the ones provided by ICEfaces, PrimeFaces, and RichFaces.

Author:
Neil Griffin

Field Summary
 
Fields inherited from class javax.faces.application.ResourceHandler
LOCALE_PREFIX, RESOURCE_EXCLUDES_DEFAULT_VALUE, RESOURCE_EXCLUDES_PARAM_NAME, RESOURCE_IDENTIFIER
 
Constructor Summary
ResourceHandlerOuterImpl(javax.faces.application.ResourceHandler resourceHandler)
           
 
Method Summary
 javax.faces.application.Resource createResource(String resourceName)
           
 javax.faces.application.Resource createResource(String resourceName, String libraryName)
           
 javax.faces.application.Resource createResource(String resourceName, String libraryName, String contentType)
           
 javax.faces.application.ResourceHandler getWrapped()
           
 
Methods inherited from class javax.faces.application.ResourceHandlerWrapper
getRendererTypeForResourceName, handleResourceRequest, isResourceRequest, libraryExists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceHandlerOuterImpl

public ResourceHandlerOuterImpl(javax.faces.application.ResourceHandler resourceHandler)
Method Detail

createResource

public javax.faces.application.Resource createResource(String resourceName)
Overrides:
createResource in class javax.faces.application.ResourceHandlerWrapper

createResource

public javax.faces.application.Resource createResource(String resourceName,
                                                       String libraryName)
Overrides:
createResource in class javax.faces.application.ResourceHandlerWrapper

createResource

public javax.faces.application.Resource createResource(String resourceName,
                                                       String libraryName,
                                                       String contentType)
Overrides:
createResource in class javax.faces.application.ResourceHandlerWrapper

getWrapped

public javax.faces.application.ResourceHandler getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.faces.application.ResourceHandler>
Overrides:
getWrapped in class javax.faces.application.ResourceHandlerWrapper


Copyright © 2014 Liferay, Inc.. All Rights Reserved.