Package jakarta.faces.application
Class Resource
- java.lang.Object
- 
- jakarta.faces.application.ViewResource
- 
- jakarta.faces.application.Resource
 
 
- 
- Direct Known Subclasses:
- ResourceWrapper
 
 public abstract class Resource extends ViewResource - Since:
- 2.0
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCOMPONENT_RESOURCE_KEYThis constant is used as the key in the component attribute map of a composite component to associate the component with itsResourceinstance.
 - 
Constructor SummaryConstructors Constructor Description Resource()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetContentType()abstract InputStreamgetInputStream()StringgetLibraryName()abstract StringgetRequestPath()StringgetResourceName()abstract Map<String,String>getResponseHeaders()abstract URLgetURL()voidsetContentType(String contentType)voidsetLibraryName(String libraryName)voidsetResourceName(String resourceName)StringtoString()abstract booleanuserAgentNeedsUpdate(FacesContext context)
 
- 
- 
- 
Field Detail- 
COMPONENT_RESOURCE_KEYpublic 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 itsResourceinstance.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getContentTypepublic String getContentType() 
 - 
getInputStreampublic abstract InputStream getInputStream() throws IOException - Throws:
- IOException
 
 - 
getLibraryNamepublic String getLibraryName() 
 - 
getRequestPathpublic abstract String getRequestPath() 
 - 
getResourceNamepublic String getResourceName() 
 - 
getURLpublic abstract URL getURL() - Specified by:
- getURLin class- ViewResource
 
 - 
setContentTypepublic void setContentType(String contentType) 
 - 
setLibraryNamepublic void setLibraryName(String libraryName) 
 - 
setResourceNamepublic void setResourceName(String resourceName) 
 - 
userAgentNeedsUpdatepublic abstract boolean userAgentNeedsUpdate(FacesContext context) 
 
- 
 
-