Package org.apache.myfaces.resource
Class ResourceImpl
- java.lang.Object
- 
- jakarta.faces.application.ViewResource
- 
- jakarta.faces.application.Resource
- 
- org.apache.myfaces.resource.ResourceImpl
 
 
 
- 
- All Implemented Interfaces:
- ContractResource
 
 public class ResourceImpl extends Resource implements ContractResource Default implementation for resources
- 
- 
Field SummaryFields Modifier and Type Field Description protected static StringFACES_JS_RESOURCE_NAMEprotected static StringJAKARTA_FACES_LIBRARY_NAME- 
Fields inherited from class jakarta.faces.application.ResourceCOMPONENT_RESOURCE_KEY
 - 
Fields inherited from interface org.apache.myfaces.resource.ContractResourceCONTRACT_SELECTED
 
- 
 - 
Constructor SummaryConstructors Constructor Description ResourceImpl(ResourceMeta resourceMeta, ResourceLoader resourceLoader, ResourceHandlerSupport support, String contentType)ResourceImpl(ResourceMeta resourceMeta, ResourceLoader resourceLoader, ResourceHandlerSupport support, String contentType, URL url, String requestPath)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContractName()InputStreamgetInputStream()protected longgetLastModified(FacesContext facesContext)StringgetRequestPath()protected ResourceHandlerSupportgetResourceHandlerSupport()ResourceLoadergetResourceLoader()protected ResourceMetagetResourceMeta()Map<String,String>getResponseHeaders()URLgetURL()booleanisContractResource()booleanuserAgentNeedsUpdate(FacesContext context)- 
Methods inherited from class jakarta.faces.application.ResourcegetContentType, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName, toString
 
- 
 
- 
- 
- 
Field Detail- 
JAKARTA_FACES_LIBRARY_NAMEprotected static final String JAKARTA_FACES_LIBRARY_NAME - See Also:
- Constant Field Values
 
 - 
FACES_JS_RESOURCE_NAMEprotected static final String FACES_JS_RESOURCE_NAME - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ResourceImplpublic ResourceImpl(ResourceMeta resourceMeta, ResourceLoader resourceLoader, ResourceHandlerSupport support, String contentType) 
 - 
ResourceImplpublic ResourceImpl(ResourceMeta resourceMeta, ResourceLoader resourceLoader, ResourceHandlerSupport support, String contentType, URL url, String requestPath) 
 
- 
 - 
Method Detail- 
getResourceLoaderpublic ResourceLoader getResourceLoader() 
 - 
getInputStreampublic InputStream getInputStream() throws IOException - Specified by:
- getInputStreamin class- Resource
- Throws:
- IOException
 
 - 
getRequestPathpublic String getRequestPath() - Specified by:
- getRequestPathin class- Resource
 
 - 
getResponseHeaderspublic Map<String,String> getResponseHeaders() - Specified by:
- getResponseHeadersin class- Resource
 
 - 
userAgentNeedsUpdatepublic boolean userAgentNeedsUpdate(FacesContext context) - Specified by:
- userAgentNeedsUpdatein class- Resource
 
 - 
getResourceHandlerSupportprotected ResourceHandlerSupport getResourceHandlerSupport() 
 - 
getResourceMetaprotected ResourceMeta getResourceMeta() 
 - 
isContractResourcepublic boolean isContractResource() - Specified by:
- isContractResourcein interface- ContractResource
 
 - 
getContractNamepublic String getContractName() - Specified by:
- getContractNamein interface- ContractResource
 
 - 
getLastModifiedprotected long getLastModified(FacesContext facesContext) 
 
- 
 
-