@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(@Nonnull
SlingHttpServletRequest slingRequest)
@CheckForNull public JSONObject getState(@Nonnull java.lang.String selector)
selector - the selector@CheckForNull public JSONObject getState(@Nonnull java.lang.String selector, @Nonnull java.lang.String namespace)
selector - the selectornamespace - the namespace@CheckForNull public JSONObject getState(@Nonnull java.lang.String selector, @CheckForNull java.lang.String[] attributes)
selector - the selectorattributes - the keys of the attributes we are interested in@CheckForNull public JSONObject getState(@Nonnull java.lang.String selector, @CheckForNull java.lang.String[] attributes, @Nonnull java.lang.String namespace)
selector - the selectorattributes - the keys of the attributes we are interested innamespace - the namespacepublic boolean restoreState(@Nonnull
AttrBuilder attr,
@Nonnull
java.lang.String selector)
attr - the attribute builderselector - the selectortrue if the addition is successful, false otherwisepublic boolean restoreState(@Nonnull
AttrBuilder attr,
@Nonnull
java.lang.String selector,
@Nonnull
java.lang.String namespace)
attr - the attribute builderselector - the selectornamespace - the namespacetrue if the addition is successful, false otherwisepublic boolean restoreState(@Nonnull
AttrBuilder attr,
@Nonnull
java.lang.String selector,
@CheckForNull
java.lang.String[] attributes)
attr - the attribute builderselector - the selectorattributes - the attributestrue if the addition is successful, false otherwisepublic boolean restoreState(@Nonnull
AttrBuilder attr,
@Nonnull
java.lang.String selector,
@CheckForNull
java.lang.String[] attributes,
@Nonnull
java.lang.String namespace)
attr - the attribute builderselector - the selectorattributes - the attributesnamespace - the namespacetrue if the addition is successful, false otherwiseCopyright © 2010 - 2023 Adobe. All Rights Reserved