public abstract class Resource extends ViewResource
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_RESOURCE_KEY
This constant is used as the key in the component attribute map of a composite component to
associate the component with its
Resource instance. |
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
abstract InputStream |
getInputStream() |
String |
getLibraryName() |
abstract String |
getRequestPath() |
String |
getResourceName() |
abstract Map<String,String> |
getResponseHeaders() |
abstract URL |
getURL() |
void |
setContentType(String contentType) |
void |
setLibraryName(String libraryName) |
void |
setResourceName(String resourceName) |
String |
toString() |
abstract boolean |
userAgentNeedsUpdate(FacesContext context) |
public static final String COMPONENT_RESOURCE_KEY
Resource
instance.public String getContentType()
public abstract InputStream getInputStream() throws IOException
IOException
public String getLibraryName()
public abstract String getRequestPath()
public String getResourceName()
public abstract URL getURL()
getURL
in class ViewResource
public void setContentType(String contentType)
public void setLibraryName(String libraryName)
public void setResourceName(String resourceName)
public abstract boolean userAgentNeedsUpdate(FacesContext context)
Copyright © 2020 The Apache Software Foundation. All rights reserved.