javax.faces.application
Class Resource

java.lang.Object
  extended by javax.faces.application.Resource
Direct Known Subclasses:
ResourceWrapper

public abstract class Resource
extends Object

Since:
2.0
Version:
$Revision: 696523 $ $Date: 2008-09-24 18:31:37 -0400 (mer., 17 sept. 2008) $
Author:
Simon Lessard (latest modification by $Author: slessard $)

Field Summary
static String COMPONENT_RESOURCE_KEY
          This constant is used as the key in the component attribute map of a composite component to associate the component with its Resource instance.
 
Constructor Summary
Resource()
           
 
Method Summary
 String getContentType()
           
abstract  InputStream getInputStream()
           
 String getLibraryName()
           
abstract  String getRequestPath()
           
 String getResourceName()
           
abstract  Map<String,String> getResponseHeaders()
           
abstract  URL getURL()
           
 void setContentType(String contentType)
           
 void setLibraryName(String libraryName)
           
 void setResourceName(String resourceName)
           
 String toString()
           
abstract  boolean userAgentNeedsUpdate(FacesContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPONENT_RESOURCE_KEY

public static final String COMPONENT_RESOURCE_KEY
This constant is used as the key in the component attribute map of a composite component to associate the component with its Resource instance.

See Also:
Constant Field Values
Constructor Detail

Resource

public Resource()
Method Detail

getContentType

public String getContentType()

getInputStream

public abstract InputStream getInputStream()
                                    throws IOException
Throws:
IOException

getLibraryName

public String getLibraryName()

getRequestPath

public abstract String getRequestPath()

getResourceName

public String getResourceName()

getResponseHeaders

public abstract Map<String,String> getResponseHeaders()

getURL

public abstract URL getURL()

setContentType

public void setContentType(String contentType)

setLibraryName

public void setLibraryName(String libraryName)

setResourceName

public void setResourceName(String resourceName)

toString

public String toString()
Overrides:
toString in class Object

userAgentNeedsUpdate

public abstract boolean userAgentNeedsUpdate(FacesContext context)


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