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 Resource
IOException
public String getRequestPath()
getRequestPath
in class Resource
public Map<String,String> getResponseHeaders()
getResponseHeaders
in class Resource
public boolean userAgentNeedsUpdate(FacesContext context)
userAgentNeedsUpdate
in class Resource
public abstract Resource getWrapped()
FacesWrapper
getWrapped
in interface FacesWrapper<Resource>
public void setResourceName(String resourceName)
setResourceName
in class Resource
public void setLibraryName(String libraryName)
setLibraryName
in class Resource
public void setContentType(String contentType)
setContentType
in class Resource
public String getResourceName()
getResourceName
in class Resource
public String getLibraryName()
getLibraryName
in class Resource
public String getContentType()
getContentType
in class Resource
Copyright © 2020 The Apache Software Foundation. All rights reserved.