public class DefaultHttpPoster extends Object implements HttpPoster
HttpPoster.Response| Constructor and Description |
|---|
DefaultHttpPoster(String url,
String email,
String token) |
DefaultHttpPoster(String url,
String email,
String token,
int connectTimeoutMillis,
int readTimeoutMillis) |
public Future<HttpPoster.Response> post(String userAgent, String payload) throws IOException
HttpPosterpost in interface HttpPosteruserAgent - the user agent to usepayload - the payload to postIOException - on IO-related errorpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2016. All rights reserved.