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_KEYCONTRACT_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, toStringprotected 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 ResourceIOExceptionpublic String getRequestPath()
getRequestPath in class Resourcepublic Map<String,String> getResponseHeaders()
getResponseHeaders in class Resourcepublic boolean userAgentNeedsUpdate(FacesContext context)
userAgentNeedsUpdate in class Resourceprotected ResourceHandlerSupport getResourceHandlerSupport()
protected ResourceMeta getResourceMeta()
public boolean isContractResource()
isContractResource in interface ContractResourcepublic String getContractName()
getContractName in interface ContractResourceCopyright © 2021 The Apache Software Foundation. All rights reserved.