public class ResourceImpl extends Resource implements ContractResource
Modifier and Type | Field and Description |
---|---|
protected static String |
JAVAX_FACES_LIBRARY_NAME |
protected static String |
JSF_JS_RESOURCE_NAME |
COMPONENT_RESOURCE_KEY
CONTRACT_SELECTED
Constructor and Description |
---|
ResourceImpl(ResourceMeta resourceMeta,
ResourceLoader resourceLoader,
ResourceHandlerSupport support,
String contentType) |
ResourceImpl(ResourceMeta resourceMeta,
ResourceLoader resourceLoader,
ResourceHandlerSupport support,
String contentType,
URL url,
String requestPath) |
Modifier and Type | Method and Description |
---|---|
String |
getContractName() |
InputStream |
getInputStream() |
String |
getRequestPath() |
protected ResourceHandlerSupport |
getResourceHandlerSupport() |
ResourceLoader |
getResourceLoader() |
protected ResourceMeta |
getResourceMeta() |
Map<String,String> |
getResponseHeaders() |
URL |
getURL() |
boolean |
isContractResource() |
boolean |
userAgentNeedsUpdate(FacesContext context) |
getContentType, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName, toString
protected static final String JAVAX_FACES_LIBRARY_NAME
protected static final String JSF_JS_RESOURCE_NAME
public ResourceImpl(ResourceMeta resourceMeta, ResourceLoader resourceLoader, ResourceHandlerSupport support, String contentType)
public ResourceImpl(ResourceMeta resourceMeta, ResourceLoader resourceLoader, ResourceHandlerSupport support, String contentType, URL url, String requestPath)
public ResourceLoader getResourceLoader()
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
protected ResourceHandlerSupport getResourceHandlerSupport()
protected ResourceMeta getResourceMeta()
public boolean isContractResource()
isContractResource
in interface ContractResource
public String getContractName()
getContractName
in interface ContractResource
Copyright © 2020 The Apache Software Foundation. All rights reserved.