@Deprecated
public class ClientState
extends java.lang.Object
util.state. It's purpose is to receive the values from the HTTP
request and either transform it to a JSON object or to add them to an
existing AttrBuilder.| Constructor and Description |
|---|
ClientState(SlingHttpServletRequest slingRequest)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
getState(java.lang.String selector)
Deprecated.
Returns all attributes from the global namespace for the given selector.
|
JSONObject |
getState(java.lang.String selector,
java.lang.String namespace)
Deprecated.
Returns all attributes from a given namespace for the given selector.
|
JSONObject |
getState(java.lang.String selector,
java.lang.String[] attributes)
Deprecated.
Returns all attributes which keys are included in the attributes array from
the global namespace for the given selector.
|
JSONObject |
getState(java.lang.String selector,
java.lang.String[] attributes,
java.lang.String namespace)
Deprecated.
Returns all attributes which keys are included in the attributes array from a
given namespace for the given selector.
|
boolean |
restoreState(AttrBuilder attr,
java.lang.String selector)
Deprecated.
Adds all attributes from the global namespace for the given selector to an
AttrBuilder.
|
boolean |
restoreState(AttrBuilder attr,
java.lang.String selector,
java.lang.String namespace)
Deprecated.
Adds all attributes from a given namespace for the given selector to an
AttrBuilder.
|
boolean |
restoreState(AttrBuilder attr,
java.lang.String selector,
java.lang.String[] attributes)
Deprecated.
Adds all attributes which keys are included in the attributes array from the
global namespace for the given selector to an AttrBuilder.
|
boolean |
restoreState(AttrBuilder attr,
java.lang.String selector,
java.lang.String[] attributes,
java.lang.String namespace)
Deprecated.
Adds all attributes which keys are included in the attributes array from a
given namespace for the given selector to an AttrBuilder.
|
public ClientState(SlingHttpServletRequest slingRequest)
public JSONObject getState(java.lang.String selector)
selector - the selectorpublic JSONObject getState(java.lang.String selector, java.lang.String namespace)
selector - the selectornamespace - the namespacepublic JSONObject getState(java.lang.String selector, java.lang.String[] attributes)
selector - the selectorattributes - the keys of the attributes we are interested inpublic JSONObject getState(java.lang.String selector, java.lang.String[] attributes, java.lang.String namespace)
selector - the selectorattributes - the keys of the attributes we are interested innamespace - the namespacepublic boolean restoreState(AttrBuilder attr, java.lang.String selector)
attr - the attribute builderselector - the selectortrue if the addition is successful, false otherwisepublic boolean restoreState(AttrBuilder attr, java.lang.String selector, java.lang.String namespace)
attr - the attribute builderselector - the selectornamespace - the namespacetrue if the addition is successful, false otherwisepublic boolean restoreState(AttrBuilder attr, java.lang.String selector, java.lang.String[] attributes)
attr - the attribute builderselector - the selectorattributes - the attributestrue if the addition is successful, false otherwisepublic boolean restoreState(AttrBuilder attr, java.lang.String selector, java.lang.String[] attributes, java.lang.String namespace)
attr - the attribute builderselector - the selectorattributes - the attributesnamespace - the namespacetrue if the addition is successful, false otherwise"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"