public class RestApi extends Api
| Constructor and Description |
|---|
RestApi(Credentials credentials) |
RestApi(Credentials credentials,
String host,
boolean secure) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<S> S |
send(Request<S> request) |
<S> FlowthingsFuture<S> |
sendAsync(Request<S> request)
A consistent interface for sending requests via multiple APIs
|
boolean |
supportsSubscribe() |
protected String |
toQueryString(String url,
Map<String,String> parameters) |
collectResponse, setRequestPropertiesprotected static Logger logger
public RestApi(Credentials credentials)
public RestApi(Credentials credentials, String host, boolean secure)
public <S> S send(Request<S> request) throws FlowthingsException
FlowthingsExceptionpublic <S> FlowthingsFuture<S> sendAsync(Request<S> request)
Apipublic boolean supportsSubscribe()
supportsSubscribe in class Apiprotected String toQueryString(String url, Map<String,String> parameters) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2016. All rights reserved.