@RequestScope @Component(value="blResourcesRequest") public class ResourcesRequest extends Object
If bundling is enabled and appropriate, use the getBundleForBundleName(String) and
saveBundleForBundleName(String, String) to fetch and store the bundled file for the bundle name.
If not using bundling, use getFilesForBundleName(String) and saveFilesForBundleName(String, List)
to fetch and store the files associated with the bundle name.
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
bundlesRequested |
protected Map<String,List<String>> |
filesRequested |
| Constructor and Description |
|---|
ResourcesRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBundleForBundleName(String name)
Gets the bundle for the bundle name if previously used on this request
|
List<String> |
getFilesForBundleName(String name)
Gets the files included in a bundle if previously used on this request
|
void |
saveBundleForBundleName(String name,
String bundle)
Saves the bundle with the given name to the request so it can be recalled later in the template
|
void |
saveFilesForBundleName(String name,
List<String> files)
Saves the bundle with the given name and files so it can be recalled later in the template
|
public String getBundleForBundleName(String name)
name - the name of the bundle to search forpublic void saveBundleForBundleName(String name, String bundle)
name - the name of the bundle to savebundle - the path of the bundlepublic List<String> getFilesForBundleName(String name)
name - the name of the bundle to search forCopyright © 2018. All rights reserved.