Package jakarta.faces.application
Class Resource
java.lang.Object
jakarta.faces.application.ViewResource
jakarta.faces.application.Resource
- Direct Known Subclasses:
ResourceWrapper
- Since:
- 2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis constant is used as the key in the component attribute map of a composite component to associate the component with itsResourceinstance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract InputStreamabstract Stringabstract URLgetURL()voidsetContentType(String contentType) voidsetLibraryName(String libraryName) voidsetResourceName(String resourceName) toString()abstract booleanuserAgentNeedsUpdate(FacesContext context)
-
Field Details
-
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:
-
-
Constructor Details
-
Resource
public Resource()
-
-
Method Details
-
getContentType
-
getInputStream
- Throws:
IOException
-
getLibraryName
-
getRequestPath
-
getResourceName
-
getResponseHeaders
-
getURL
- Specified by:
getURLin classViewResource
-
setContentType
-
setLibraryName
-
setResourceName
-
toString
-
userAgentNeedsUpdate
-