com.liferay.faces.bridge.application
Class ResourceHandlerInnerImpl

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

public class ResourceHandlerInnerImpl
extends ResourceHandlerBridgeImpl

Unlike the ResourceHandlerOuterImpl class, this class is designed to be the innermost ResourceHandler in the chain-of-responsibility (only the Mojarra/MyFaces ResourceHandlerImpl has a more inner status). In order to achive this innermost status, it is registered in the application section of the bridge's faces-config.xml descriptor. It is responsible for wrapping resources created by Mojarra/MyFaces so that resource URLs will work in a portlet environment. It is also responsible for serving up resources via the ResourceHandlerWrapperBase.handleResourceRequest(FacesContext) method.

Author:
Neil Griffin

Field Summary
 
Fields inherited from class com.liferay.faces.util.application.ResourceHandlerWrapperBase
DEFAULT_BUFFER_SIZE
 
Fields inherited from class javax.faces.application.ResourceHandler
LOCALE_PREFIX, RESOURCE_EXCLUDES_DEFAULT_VALUE, RESOURCE_EXCLUDES_PARAM_NAME, RESOURCE_IDENTIFIER
 
Constructor Summary
ResourceHandlerInnerImpl(javax.faces.application.ResourceHandler resourceHandler)
           
 
Method Summary
protected  ResourceOutputStream getResourceOutputStream(javax.faces.application.Resource resource, int size)
           
 
Methods inherited from class com.liferay.faces.bridge.application.ResourceHandlerBridgeImpl
createResource, createResource, createResource, getBufferSize, isAbleToSetHttpStatusCode
 
Methods inherited from class com.liferay.faces.util.application.ResourceHandlerWrapperBase
getWrapped, handleResource, handleResourceRequest, isEncodedFacesResourceURL, isFacesResourceURL, isResourceRequest
 
Methods inherited from class javax.faces.application.ResourceHandlerWrapper
getRendererTypeForResourceName, libraryExists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceHandlerInnerImpl

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

getResourceOutputStream

protected ResourceOutputStream getResourceOutputStream(javax.faces.application.Resource resource,
                                                       int size)
Overrides:
getResourceOutputStream in class ResourceHandlerWrapperBase


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