public abstract class Api extends Object
| Constructor and Description |
|---|
Api() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
protected String |
collectResponse(boolean gzip,
InputStream response) |
abstract <S> FlowthingsFuture<S> |
sendAsync(Request<S> request)
A consistent interface for sending requests via multiple APIs
|
protected void |
setRequestProperties(URLConnection connection,
Map<String,Object> headers) |
abstract boolean |
supportsSubscribe() |
protected static Logger logger
protected String collectResponse(boolean gzip, InputStream response) throws IOException
IOExceptionprotected void setRequestProperties(URLConnection connection, Map<String,Object> headers)
public abstract <S> FlowthingsFuture<S> sendAsync(Request<S> request)
public abstract boolean supportsSubscribe()
public abstract void close()
Copyright © 2017. All rights reserved.