com.liferay.faces.bridge.application.internal
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.internal.ResourceHandlerBridgeImpl
                  extended by com.liferay.faces.bridge.application.internal.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 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)
           
 void handleResourceRequest(javax.faces.context.FacesContext facesContext)
          This method handles the current request which is assumed to be a request for a Resource.
 
Methods inherited from class com.liferay.faces.bridge.application.internal.ResourceHandlerBridgeImpl
createResource, createResource, createResource, getBufferSize, isAbleToSetHttpStatusCode, isEncodedFacesResourceURL, isFacesResourceURL, isResourceRequest
 
Methods inherited from class com.liferay.faces.util.application.ResourceHandlerWrapperBase
getWrapped, handleResource
 
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

handleResourceRequest

public void handleResourceRequest(javax.faces.context.FacesContext facesContext)
                           throws IOException
Description copied from class: ResourceHandlerBridgeImpl
This method handles the current request which is assumed to be a request for a Resource.

Overrides:
handleResourceRequest in class ResourceHandlerBridgeImpl
Throws:
IOException

getResourceOutputStream

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


Copyright © 2015 Liferay, Inc.. All rights reserved.