Package jakarta.faces.application
Class Resource
- java.lang.Object
-
- jakarta.faces.application.ViewResource
-
- jakarta.faces.application.Resource
-
- Direct Known Subclasses:
ResourceWrapper
public abstract class Resource extends ViewResource
- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
COMPONENT_RESOURCE_KEY
This constant is used as the key in the component attribute map of a composite component to associate the component with itsResource
instance.
-
Constructor Summary
Constructors Constructor Description Resource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getContentType()
abstract InputStream
getInputStream()
String
getLibraryName()
abstract String
getRequestPath()
String
getResourceName()
abstract Map<String,String>
getResponseHeaders()
abstract URL
getURL()
void
setContentType(String contentType)
void
setLibraryName(String libraryName)
void
setResourceName(String resourceName)
String
toString()
abstract boolean
userAgentNeedsUpdate(FacesContext context)
-
-
-
Field Detail
-
COMPONENT_RESOURCE_KEY
public static final String COMPONENT_RESOURCE_KEY
This constant is used as the key in the component attribute map of a composite component to associate the component with itsResource
instance.- See Also:
- Constant Field Values
-
-
Method Detail
-
getContentType
public String getContentType()
-
getInputStream
public abstract InputStream getInputStream() throws IOException
- Throws:
IOException
-
getLibraryName
public String getLibraryName()
-
getRequestPath
public abstract String getRequestPath()
-
getResourceName
public String getResourceName()
-
getURL
public abstract URL getURL()
- Specified by:
getURL
in classViewResource
-
setContentType
public void setContentType(String contentType)
-
setLibraryName
public void setLibraryName(String libraryName)
-
setResourceName
public void setResourceName(String resourceName)
-
userAgentNeedsUpdate
public abstract boolean userAgentNeedsUpdate(FacesContext context)
-
-