javax.faces.application
Class ResourceWrapper

java.lang.Object
  extended by javax.faces.application.Resource
      extended by javax.faces.application.ResourceWrapper
All Implemented Interfaces:
FacesWrapper<Resource>

public abstract class ResourceWrapper
extends Resource
implements FacesWrapper<Resource>

Since:
2.0
Version:
$Revision: 1187701 $ $Date: 2011-10-22 07:21:54 -0500 (Sat, 22 Oct 2011) $
Author:
Simon Lessard (latest modification by $Author: bommel $)

Field Summary
 
Fields inherited from class javax.faces.application.Resource
COMPONENT_RESOURCE_KEY
 
Constructor Summary
ResourceWrapper()
           
 
Method Summary
 InputStream getInputStream()
           
 String getRequestPath()
           
 Map<String,String> getResponseHeaders()
           
 URL getURL()
           
abstract  Resource getWrapped()
          A class that implements this interface uses this method to return an instance of the class being wrapped.
 boolean userAgentNeedsUpdate(FacesContext context)
           
 
Methods inherited from class javax.faces.application.Resource
getContentType, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceWrapper

public ResourceWrapper()
Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in class Resource
Throws:
IOException

getRequestPath

public String getRequestPath()
Specified by:
getRequestPath in class Resource

getResponseHeaders

public Map<String,String> getResponseHeaders()
Specified by:
getResponseHeaders in class Resource

getURL

public URL getURL()
Specified by:
getURL in class Resource

userAgentNeedsUpdate

public boolean userAgentNeedsUpdate(FacesContext context)
Specified by:
userAgentNeedsUpdate in class Resource

getWrapped

public abstract Resource getWrapped()
Description copied from interface: FacesWrapper
A class that implements this interface uses this method to return an instance of the class being wrapped.

Specified by:
getWrapped in interface FacesWrapper<Resource>
Returns:
the instance of the class being wrapped


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