A ResourceHelper implementation for finding/serving resources
found on the classpath within the META-INF/resources directory.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private boolean | |
| private boolean | |
| private volatile ZipDirectoryEntryScanner |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public LibraryInfo | findLibrary(String
the name of the library libraryName, String the logicial identifier for a locale specific library.
if no localePrefix is configured, pass localePrefix, String nullthe name of the contract contract, FacesContext the ctx)javax.faces.context.FacesContext for the current request @return a LibraryInfo if a matching library based off the inputs
can be found, otherwise returns nullImplements abstract com. |
| public LibraryInfo | findLibraryWithZipDirectoryEntryScan(String libraryName, String localePrefix, String contract, FacesContext ctx, boolean forceScan)
|
| private URL | findPathConsideringContracts(ClassLoader loader, LibraryInfo library, String resourceName, String localePrefix, ContractInfo[] outContract, String[] outBasePath, FacesContext ctx)
|
| public ResourceInfo | findResource(LibraryInfo
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 library, String nullthe name of the resource that is being searched for resourceName, String the logicial identifier for a locale specific library.
if no localePrefix is configured, pass localePrefix, boolean nulltrue if the resource can be compressedthe ctx)javax.faces.context.FacesContext for the current requestImplements abstract com. Search for the specified resource based in the library/localePrefix/resourceName combination in an implementation dependent manner. |
| public String | getBaseContractsPath()
Implements abstract com. |
| public String | getBaseResourcePath()
Implements abstract com. |
| protected InputStream | getNonCompressedInputStream(ResourceInfo
the resource to obtain an InputStream to resource, FacesContext the ctx)FacesContext for the current requestImplements abstract com. ResourceInfo is not compressable, getInputStream(ResourceInfo, javax.faces.context.FacesContext)
will call this method to return a stream to the actual resource.
|
| public URL | getURL(ResourceInfo
the resource to obtain a URL reference to resource, FacesContext the ctx)FacesContext for the current requestImplements abstract com. |
| public int |
| BASE_RESOURCE_PATH | back to summary |
|---|---|
| private static final String BASE_RESOURCE_PATH | |
| cacheTimestamp | back to summary |
|---|---|
| private boolean cacheTimestamp | |
| enableMissingResourceLibraryDetection | back to summary |
|---|---|
| private boolean enableMissingResourceLibraryDetection | |
| libraryScanner | back to summary |
|---|---|
| private volatile ZipDirectoryEntryScanner libraryScanner | |
| ClasspathResourceHelper | back to summary |
|---|---|
| public ClasspathResourceHelper() | |
| deriveBasePath | back to summary |
|---|---|
| private String deriveBasePath(LibraryInfo library, String resourceName, String localePrefix) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| findLibrary | back to summary |
|---|---|
| public LibraryInfo findLibrary(String libraryName, String localePrefix, String contract, FacesContext ctx) Implements abstract com. Doc from com. Search for the specified library/localPrefix combination in an implementation dependent manner.
| |
| findLibraryWithZipDirectoryEntryScan | back to summary |
|---|---|
| public LibraryInfo findLibraryWithZipDirectoryEntryScan(String libraryName, String localePrefix, String contract, FacesContext ctx, boolean forceScan) | |
| findPathConsideringContracts | back to summary |
|---|---|
| private URL findPathConsideringContracts(ClassLoader loader, LibraryInfo library, String resourceName, String localePrefix, ContractInfo[] outContract, String[] outBasePath, FacesContext ctx) | |
| findResource | back to summary |
|---|---|
| public ResourceInfo findResource(LibraryInfo library, String resourceName, String localePrefix, boolean compressable, FacesContext ctx) Implements abstract com. Doc from com. Search 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
| |
| getBaseContractsPath | back to summary |
|---|---|
| public String getBaseContractsPath() Implements abstract com.
| |
| getBaseResourcePath | back to summary |
|---|---|
| public String getBaseResourcePath() Implements abstract com.
| |
| getNonCompressedInputStream | back to summary |
|---|---|
| protected InputStream getNonCompressedInputStream(ResourceInfo resource, FacesContext ctx) throws IOException Implements abstract com. Doc from com. If a
| |
| getURL | back to summary |
|---|---|
| public URL getURL(ResourceInfo resource, FacesContext ctx) Implements abstract com.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |