Package com.composum.sling.core
Class RequestBundle
- java.lang.Object
-
- java.util.ResourceBundle
-
- com.composum.sling.core.RequestBundle
-
public class RequestBundle extends ResourceBundle
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
RequestBundle.BundleItem
protected static class
RequestBundle.BundleWrapper
-
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTRIBUTE_KEY
protected List<RequestBundle.BundleItem>
bundles
protected org.apache.sling.api.SlingHttpServletRequest
request
-
Fields inherited from class java.util.ResourceBundle
parent
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RequestBundle(org.apache.sling.api.SlingHttpServletRequest request)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestBundle
get(@NotNull org.apache.sling.api.SlingHttpServletRequest request)
returns the requests instance@NotNull Enumeration<String>
getKeys()
protected Object
handleGetObject(@NotNull String key)
void
pop()
void
push(String basename)
protected void
pushBundle(String basename)
-
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
-
-
-
-
Field Detail
-
ATTRIBUTE_KEY
public static final String ATTRIBUTE_KEY
- See Also:
- Constant Field Values
-
request
protected final org.apache.sling.api.SlingHttpServletRequest request
-
bundles
protected final List<RequestBundle.BundleItem> bundles
-
-
Method Detail
-
get
public static RequestBundle get(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request)
returns the requests instance
-
push
public void push(String basename)
-
pushBundle
protected void pushBundle(String basename)
-
pop
public void pop()
-
handleGetObject
protected Object handleGetObject(@NotNull @NotNull String key)
- Specified by:
handleGetObject
in classResourceBundle
-
getKeys
@NotNull public @NotNull Enumeration<String> getKeys()
- Specified by:
getKeys
in classResourceBundle
-
-