Package jakarta.faces.application
Class ResourceWrapper
java.lang.Object
jakarta.faces.application.ViewResource
jakarta.faces.application.Resource
jakarta.faces.application.ResourceWrapper
- All Implemented Interfaces:
FacesWrapper<Resource>
- Since:
- 2.0
-
Field Summary
Fields inherited from class jakarta.faces.application.Resource
COMPONENT_RESOURCE_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetURL()
A class that implements this interface uses this method to return an instance of the class being wrapped.void
setContentType
(String contentType) void
setLibraryName
(String libraryName) void
setResourceName
(String resourceName) boolean
userAgentNeedsUpdate
(FacesContext context)
-
Constructor Details
-
ResourceWrapper
Deprecated. -
ResourceWrapper
-
-
Method Details
-
getInputStream
- Specified by:
getInputStream
in classResource
- Throws:
IOException
-
getRequestPath
- Specified by:
getRequestPath
in classResource
-
getResponseHeaders
- Specified by:
getResponseHeaders
in classResource
-
getURL
-
userAgentNeedsUpdate
- Specified by:
userAgentNeedsUpdate
in classResource
-
getWrapped
Description copied from interface:FacesWrapper
A class that implements this interface uses this method to return an instance of the class being wrapped.- Specified by:
getWrapped
in interfaceFacesWrapper<Resource>
- Returns:
- the instance of the class being wrapped
-
setResourceName
- Overrides:
setResourceName
in classResource
-
setLibraryName
- Overrides:
setLibraryName
in classResource
-
setContentType
- Overrides:
setContentType
in classResource
-
getResourceName
- Overrides:
getResourceName
in classResource
-
getLibraryName
- Overrides:
getLibraryName
in classResource
-
getContentType
- Overrides:
getContentType
in classResource
-