public class State extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
State.Item
An item in the state.
|
| Constructor and Description |
|---|
State(SlingHttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
String |
get(String name)
Returns the item value of the given name.
|
boolean |
get(String name,
boolean defaultValue)
Returns the item value of the given name.
|
int |
get(String name,
int defaultValue)
Returns the item value of the given name.
|
String |
get(String name,
String defaultValue)
Returns the item value of the given name.
|
State.Item |
getItem(String name)
Returns the state item with the given name.
|
Iterator<String> |
names()
Returns the available names.
|
public State(SlingHttpServletRequest request)
public String get(String name)
null if the
item is not found.name - the name of the itempublic String get(String name, String defaultValue)
name - the name of the itemdefaultValue - the default valuepublic boolean get(String name, boolean defaultValue)
name - the name of the itemdefaultValue - the default valuepublic int get(String name, int defaultValue)
name - the name of the itemdefaultValue - the default valuepublic State.Item getItem(String name)
null if the
item is not found.name - the name of the item"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"