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_KEY
Fields 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 long
getLastModified
(FacesContext facesContext) protected ResourceHandlerSupport
protected ResourceMeta
getURL()
boolean
boolean
userAgentNeedsUpdate
(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:
getInputStream
in classResource
- Throws:
IOException
-
getRequestPath
- Specified by:
getRequestPath
in classResource
-
getResponseHeaders
- Specified by:
getResponseHeaders
in classResource
-
getURL
-
userAgentNeedsUpdate
- Specified by:
userAgentNeedsUpdate
in classResource
-
getResourceHandlerSupport
-
getResourceMeta
-
isContractResource
public boolean isContractResource()- Specified by:
isContractResource
in interfaceContractResource
-
getContractName
- Specified by:
getContractName
in interfaceContractResource
-
getLastModified
-