|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stackmob.sdk.api.StackMobOptions
public class StackMobOptions
stores the various options that can be passed into a request. At the moment this means select and expand options, as well as arbitrary headers to be passed along with the request
| Constructor Summary | |
|---|---|
StackMobOptions()
|
|
| Method Summary | |
|---|---|
static StackMobOptions |
depthOf(int depth)
set the expand depth of objects being returned. |
int |
getExpandDepth()
get the expand depth as set by withDepthOf(Integer) |
static StackMobOptions |
header(String name,
String value)
add a single header to a request |
static StackMobOptions |
headers(List<Map.Entry<String,String>> headers)
add a list of headers to a request |
static StackMobOptions |
headers(Map<String,String> headerMap)
add a set of headers to a request |
static StackMobOptions |
none()
empty options that do nothing |
static StackMobOptions |
selectedFields(List<String> fields)
restricts the fields returned by a request. |
StackMobOptions |
withDepthOf(Integer i)
set the expand depth of objects being returned. |
StackMobOptions |
withHeader(String name,
String value)
add a single header to a request |
StackMobOptions |
withHeaders(List<Map.Entry<String,String>> headers)
add a list of headers to a request |
StackMobOptions |
withHeaders(Map<String,String> headerMap)
add a set of headers to a request |
StackMobOptions |
withSelectedFields(List<String> fields)
restricts the fields returned by a request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StackMobOptions()
| Method Detail |
|---|
public static StackMobOptions none()
public static StackMobOptions header(String name,
String value)
name - the header namevalue - the value of the header
public static StackMobOptions headers(Map<String,String> headerMap)
headerMap - the headers to add
public static StackMobOptions headers(List<Map.Entry<String,String>> headers)
headers - the headers to add
public static StackMobOptions selectedFields(List<String> fields)
fields - the fields to return
public static StackMobOptions depthOf(int depth)
depth - the expand depth, maximum is 3
public StackMobOptions withHeader(String name,
String value)
name - the header namevalue - the value of the header
public StackMobOptions withHeaders(Map<String,String> headerMap)
headerMap - the headers to add
public StackMobOptions withHeaders(List<Map.Entry<String,String>> headers)
headers - the headers to add
public StackMobOptions withSelectedFields(List<String> fields)
fields - the fields to return
public StackMobOptions withDepthOf(Integer i)
i - the expand depth, maximum is 3
public int getExpandDepth()
withDepthOf(Integer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||