javax.faces.application
Class Resource
java.lang.Object
javax.faces.application.Resource
- Direct Known Subclasses:
- ResourceWrapper
public abstract class Resource
- extends java.lang.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 java.lang.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
COMPONENT_RESOURCE_KEY
public static final java.lang.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
Resource
public Resource()
getContentType
public java.lang.String getContentType()
getInputStream
public abstract java.io.InputStream getInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
getLibraryName
public java.lang.String getLibraryName()
getRequestPath
public abstract java.lang.String getRequestPath()
getResourceName
public java.lang.String getResourceName()
getResponseHeaders
public abstract java.util.Map<java.lang.String,java.lang.String> getResponseHeaders()
getURL
public abstract java.net.URL getURL()
setContentType
public void setContentType(java.lang.String contentType)
setLibraryName
public void setLibraryName(java.lang.String libraryName)
setResourceName
public void setResourceName(java.lang.String resourceName)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
userAgentNeedsUpdate
public abstract boolean userAgentNeedsUpdate(FacesContext context)
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.