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.Resource
COMPONENT_RESOURCE_KEY
-
-
Constructor Summary
Constructors Constructor Description ResourceWrapper()Deprecated.ResourceWrapper(Resource delegate)
-
Method Summary
All 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.
-
ResourceWrapper
public ResourceWrapper(Resource delegate)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin classResource- Throws:
IOException
-
getRequestPath
public String getRequestPath()
- Specified by:
getRequestPathin classResource
-
getResponseHeaders
public Map<String,String> getResponseHeaders()
- Specified by:
getResponseHeadersin classResource
-
userAgentNeedsUpdate
public boolean userAgentNeedsUpdate(FacesContext context)
- Specified by:
userAgentNeedsUpdatein classResource
-
getWrapped
public 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 interfaceFacesWrapper<Resource>- Returns:
- the instance of the class being wrapped
-
setResourceName
public void setResourceName(String resourceName)
- Overrides:
setResourceNamein classResource
-
setLibraryName
public void setLibraryName(String libraryName)
- Overrides:
setLibraryNamein classResource
-
setContentType
public void setContentType(String contentType)
- Overrides:
setContentTypein classResource
-
getResourceName
public String getResourceName()
- Overrides:
getResourceNamein classResource
-
getLibraryName
public String getLibraryName()
- Overrides:
getLibraryNamein classResource
-
getContentType
public String getContentType()
- Overrides:
getContentTypein classResource
-
-