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 String
This constant is used as the key in the component attribute map of a composite component to associate the component with itsResource
instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract InputStream
abstract String
abstract URL
getURL()
void
setContentType
(String contentType) void
setLibraryName
(String libraryName) void
setResourceName
(String resourceName) toString()
abstract boolean
userAgentNeedsUpdate
(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 itsResource
instance.- See Also:
-
-
Constructor Details
-
Resource
public Resource()
-
-
Method Details
-
getContentType
-
getInputStream
- Throws:
IOException
-
getLibraryName
-
getRequestPath
-
getResourceName
-
getResponseHeaders
-
getURL
- Specified by:
getURL
in classViewResource
-
setContentType
-
setLibraryName
-
setResourceName
-
toString
-
userAgentNeedsUpdate
-