org.apache.myfaces.shared.resource
Class ResourceImpl

java.lang.Object
  extended by javax.faces.application.Resource
      extended by org.apache.myfaces.shared.resource.ResourceImpl

public class ResourceImpl
extends Resource

Default implementation for resources

Version:
$Revision: 957739 $ $Date: 2010-06-24 17:27:40 -0500 (Jue, 24 Jun 2010) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)

Field Summary
 
Fields inherited from class javax.faces.application.Resource
COMPONENT_RESOURCE_KEY
 
Constructor Summary
ResourceImpl(ResourceMeta resourceMeta, ResourceLoader resourceLoader, ResourceHandlerSupport support, String contentType)
           
 
Method Summary
 InputStream getInputStream()
           
 String getRequestPath()
           
 ResourceLoader getResourceLoader()
           
 Map<String,String> getResponseHeaders()
           
 URL getURL()
           
 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

ResourceImpl

public ResourceImpl(ResourceMeta resourceMeta,
                    ResourceLoader resourceLoader,
                    ResourceHandlerSupport support,
                    String contentType)
Method Detail

getResourceLoader

public ResourceLoader getResourceLoader()

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


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