public abstract class ResourceWrapper extends Resource implements FacesWrapper<Resource>
COMPONENT_RESOURCE_KEY| Constructor and Description |
|---|
ResourceWrapper() |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getLibraryName() |
String |
getRequestPath() |
String |
getResourceName() |
Map<String,String> |
getResponseHeaders() |
URL |
getURL() |
abstract Resource |
getWrapped()
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) |
public InputStream getInputStream() throws IOException
getInputStream in class ResourceIOExceptionpublic String getRequestPath()
getRequestPath in class Resourcepublic Map<String,String> getResponseHeaders()
getResponseHeaders in class Resourcepublic boolean userAgentNeedsUpdate(FacesContext context)
userAgentNeedsUpdate in class Resourcepublic abstract Resource getWrapped()
FacesWrappergetWrapped in interface FacesWrapper<Resource>public void setResourceName(String resourceName)
setResourceName in class Resourcepublic void setLibraryName(String libraryName)
setLibraryName in class Resourcepublic void setContentType(String contentType)
setContentType in class Resourcepublic String getResourceName()
getResourceName in class Resourcepublic String getLibraryName()
getLibraryName in class Resourcepublic String getContentType()
getContentType in class ResourceCopyright © 2022 The Apache Software Foundation. All rights reserved.