public class FaceletWebappResourceHelper extends ResourceHelper
| Constructor and Description |
|---|
FaceletWebappResourceHelper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
LibraryInfo |
findLibrary(String libraryName,
String localePrefix,
String contract,
jakarta.faces.context.FacesContext ctx)
Search for the specified library/localPrefix combination in an implementation dependent manner.
|
ResourceInfo |
findResource(LibraryInfo library,
String resourceName,
String localePrefix,
boolean compressable,
jakarta.faces.context.FacesContext ctx)
Search for the specified resource based in the library/localePrefix/resourceName combination in an implementation
dependent manner.
|
String |
getBaseContractsPath() |
String |
getBaseResourcePath() |
protected InputStream |
getNonCompressedInputStream(ResourceInfo info,
jakarta.faces.context.FacesContext ctx)
If a
ResourceInfo is not compressable,
ResourceHelper.getInputStream(ResourceInfo, jakarta.faces.context.FacesContext) will call this method to return a stream to
the actual resource. |
URL |
getURL(ResourceInfo resource,
jakarta.faces.context.FacesContext ctx) |
Stream<String> |
getViewResources(jakarta.faces.context.FacesContext facesContext,
String path,
int maxDepth,
jakarta.faces.application.ResourceVisitOption... options) |
int |
hashCode() |
clientAcceptsCompression, compressContent, getBasePath, getInputStream, getLastModified, getVersion, handleCompression, resourceSupportsEL, trimLeadingSlashpublic LibraryInfo findLibrary(String libraryName, String localePrefix, String contract, jakarta.faces.context.FacesContext ctx)
ResourceHelperfindLibrary in class ResourceHelperlibraryName - the name of the librarylocalePrefix - the logicial identifier for a locale specific library. if no localePrefix is configured, pass
nullcontract - the name of the contractctx - the FacesContext for the current request @return a LibraryInfo if a
matching library based off the inputs can be found, otherwise returns nullpublic ResourceInfo findResource(LibraryInfo library, String resourceName, String localePrefix, boolean compressable, jakarta.faces.context.FacesContext ctx)
ResourceHelperSearch for the specified resource based in the library/localePrefix/resourceName combination in an implementation dependent manner.
If the resource is found, and is compressable, call
ResourceHelper.handleCompression(com.sun.faces.application.resource.ClientResourceInfo) to compress the content.
findResource in class ResourceHelperlibrary - the library this resource should be a part of. If the the resource that is being searched for isn't
part of a library, then pass nullresourceName - the name of the resource that is being searched forlocalePrefix - the logicial identifier for a locale specific library. if no localePrefix is configured, pass
nullcompressable - true if the resource can be compressedctx - the FacesContext for the current requestResourceInfo if a matching resource based off the inputs can be found, otherwise returns
nullpublic Stream<String> getViewResources(jakarta.faces.context.FacesContext facesContext, String path, int maxDepth, jakarta.faces.application.ResourceVisitOption... options)
public String getBaseResourcePath()
getBaseResourcePath in class ResourceHelperpublic String getBaseContractsPath()
getBaseContractsPath in class ResourceHelperprotected InputStream getNonCompressedInputStream(ResourceInfo info, jakarta.faces.context.FacesContext ctx) throws IOException
ResourceHelperResourceInfo is not compressable,
ResourceHelper.getInputStream(ResourceInfo, jakarta.faces.context.FacesContext) will call this method to return a stream to
the actual resource.getNonCompressedInputStream in class ResourceHelperinfo - the resource to obtain an InputStream toctx - the FacesContext for the current requestIOException - if an error occurs obtaining the streampublic URL getURL(ResourceInfo resource, jakarta.faces.context.FacesContext ctx)
getURL in class ResourceHelperresource - the resource to obtain a URL reference toctx - the FacesContext for the current requestnull if no resource is foundCopyright © 2010–2022 JBoss by Red Hat. All rights reserved.