javax.faces.application
Class Resource
java.lang.Object
javax.faces.application.ViewResource
javax.faces.application.Resource
- Direct Known Subclasses:
- ResourceWrapper
public abstract class Resource
- extends ViewResource
- Since:
- 2.0
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. |
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
Resource
public Resource()
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()
- Specified by:
getURL
in class ViewResource
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 © 2014 The Apache Software Foundation. All rights reserved.