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>
 
 public abstract class ResourceWrapper extends Resource implements FacesWrapper<Resource> - Since:
- 2.0
 
- 
- 
Field Summary- 
Fields inherited from class jakarta.faces.application.ResourceCOMPONENT_RESOURCE_KEY
 
- 
 - 
Constructor SummaryConstructors Constructor Description ResourceWrapper()Deprecated.ResourceWrapper(Resource delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()InputStreamgetInputStream()StringgetLibraryName()StringgetRequestPath()StringgetResourceName()Map<String,String>getResponseHeaders()URLgetURL()ResourcegetWrapped()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 Detail- 
ResourceWrapper@Deprecated public ResourceWrapper() Deprecated.
 - 
ResourceWrapperpublic ResourceWrapper(Resource delegate) 
 
- 
 - 
Method Detail- 
getInputStreampublic InputStream getInputStream() throws IOException - Specified by:
- getInputStreamin class- Resource
- Throws:
- IOException
 
 - 
getRequestPathpublic String getRequestPath() - Specified by:
- getRequestPathin class- Resource
 
 - 
getResponseHeaderspublic Map<String,String> getResponseHeaders() - Specified by:
- getResponseHeadersin class- Resource
 
 - 
userAgentNeedsUpdatepublic boolean userAgentNeedsUpdate(FacesContext context) - Specified by:
- userAgentNeedsUpdatein class- Resource
 
 - 
getWrappedpublic Resource 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 interface- FacesWrapper<Resource>
- Returns:
- the instance of the class being wrapped
 
 - 
setResourceNamepublic void setResourceName(String resourceName) - Overrides:
- setResourceNamein class- Resource
 
 - 
setLibraryNamepublic void setLibraryName(String libraryName) - Overrides:
- setLibraryNamein class- Resource
 
 - 
setContentTypepublic void setContentType(String contentType) - Overrides:
- setContentTypein class- Resource
 
 - 
getResourceNamepublic String getResourceName() - Overrides:
- getResourceNamein class- Resource
 
 - 
getLibraryNamepublic String getLibraryName() - Overrides:
- getLibraryNamein class- Resource
 
 - 
getContentTypepublic String getContentType() - Overrides:
- getContentTypein class- Resource
 
 
- 
 
-