public abstract class Request extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ServiceConnector |
connector |
protected static com.google.gson.Gson |
gson |
protected Map<String,String> |
queryParameters |
| Constructor and Description |
|---|
Request(ServiceConnector connector,
String route,
String token) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getBodyAttributes() |
Map<String,String> |
getHeaderAttributes() |
Map<String,String> |
getQueryParameters() |
String |
getRoute() |
String |
getToken() |
Request |
withBodyAttribute(String key,
String value) |
Request |
withBodyAttributes(Map<String,String> bodyAttributes) |
Request |
withHeaderAttribute(String key,
String value) |
Request |
withHeaderAttributes(Map<String,String> headerAttributes) |
Request |
withQueryParameter(String key,
String value) |
Request |
withQueryParams(Map<String,String> queryParams) |
protected static final com.google.gson.Gson gson
protected final ServiceConnector connector
public Request(ServiceConnector connector, String route, String token)
Copyright © 2018. All rights reserved.