public class BoxRequestExtras extends Object
| Constructor and Description |
|---|
BoxRequestExtras() |
| Modifier and Type | Method and Description |
|---|---|
BoxRequestExtras |
addField(String field)
Add a field in the request, these fields (Please check "Fields" part in developer doc will end up as fields
query parameter in the url.
|
BoxRequestExtras |
addFields(List<String> fields)
Add fields in the request, these fields (Please check "Fields" part in developer doc will end up as fields
query parameter in the url.
|
BoxRequestExtras |
addHeader(String key,
String value)
Add a header.
|
BoxRequestExtras |
addQueryParam(String key,
String value)
Add a query parameter.
|
List<String> |
getFields() |
Map<String,String> |
getHeaders() |
Map<String,String> |
getQueryParams() |
BoxRequestExtras |
setIfMatch(String etag)
Set etag.
|
public BoxRequestExtras addField(String field)
field - field to add. Currently supported fields are the Strings defined in com.box.boxjavalibv2.dao, for example:
BoxCollaboration.FIELD_ROLE, BoxCollaboration.FIELD_CREATED_BY...public BoxRequestExtras addFields(List<String> fields)
fields - fields to add. Currently supported fields are the Strings defined in com.box.boxjavalibv2.dao, for example:
BoxCollaboration.FIELD_ROLE, BoxCollaboration.FIELD_CREATED_BY...public BoxRequestExtras addQueryParam(String key, String value)
key - keyvalue - valuepublic BoxRequestExtras addHeader(String key, String value)
key - keyvalue - valuepublic BoxRequestExtras setIfMatch(String etag)
etag - etagCopyright © 2014. All Rights Reserved.