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
Default implementation for resources
-
Field Summary
FieldsFields inherited from class jakarta.faces.application.Resource
COMPONENT_RESOURCE_KEYFields inherited from interface org.apache.myfaces.resource.ContractResource
CONTRACT_SELECTED -
Constructor Summary
ConstructorsConstructorDescriptionResourceImpl(ResourceMeta resourceMeta, ResourceLoader resourceLoader, ResourceHandlerSupport support, String contentType) ResourceImpl(ResourceMeta resourceMeta, ResourceLoader resourceLoader, ResourceHandlerSupport support, String contentType, URL url, String requestPath) -
Method Summary
Modifier and TypeMethodDescriptionprotected longgetLastModified(FacesContext facesContext) protected ResourceHandlerSupportprotected ResourceMetagetURL()booleanbooleanuserAgentNeedsUpdate(FacesContext context) Methods inherited from class jakarta.faces.application.Resource
getContentType, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName, toString
-
Field Details
-
JAKARTA_FACES_LIBRARY_NAME
- See Also:
-
FACES_JS_RESOURCE_NAME
- See Also:
-
-
Constructor Details
-
ResourceImpl
public ResourceImpl(ResourceMeta resourceMeta, ResourceLoader resourceLoader, ResourceHandlerSupport support, String contentType) -
ResourceImpl
public ResourceImpl(ResourceMeta resourceMeta, ResourceLoader resourceLoader, ResourceHandlerSupport support, String contentType, URL url, String requestPath)
-
-
Method Details
-
getResourceLoader
-
getInputStream
- Specified by:
getInputStreamin classResource- Throws:
IOException
-
getRequestPath
- Specified by:
getRequestPathin classResource
-
getResponseHeaders
- Specified by:
getResponseHeadersin classResource
-
getURL
-
userAgentNeedsUpdate
- Specified by:
userAgentNeedsUpdatein classResource
-
getResourceHandlerSupport
-
getResourceMeta
-
isContractResource
public boolean isContractResource()- Specified by:
isContractResourcein interfaceContractResource
-
getContractName
- Specified by:
getContractNamein interfaceContractResource
-
getLastModified
-