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.voidsetContentType(String contentType) voidsetLibraryName(String libraryName) voidsetResourceName(String resourceName) booleanuserAgentNeedsUpdate(FacesContext context)
-
Constructor Details
-
ResourceWrapper
Deprecated. -
ResourceWrapper
-
-
Method Details
-
getInputStream
- Specified by:
getInputStreamin classResource- Throws:
IOException
-
getRequestPath
- Specified by:
getRequestPathin classResource
-
getResponseHeaders
- Specified by:
getResponseHeadersin classResource
-
getURL
-
userAgentNeedsUpdate
- Specified by:
userAgentNeedsUpdatein classResource
-
getWrapped
Description copied from interface:FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped.- Specified by:
getWrappedin interfaceFacesWrapper<Resource>- Returns:
- the instance of the class being wrapped
-
setResourceName
- Overrides:
setResourceNamein classResource
-
setLibraryName
- Overrides:
setLibraryNamein classResource
-
setContentType
- Overrides:
setContentTypein classResource
-
getResourceName
- Overrides:
getResourceNamein classResource
-
getLibraryName
- Overrides:
getLibraryNamein classResource
-
getContentType
- Overrides:
getContentTypein classResource
-