public class DefaultHttpTransportService extends Object implements HttpTransportService
HttpTransportService.SResponse| Constructor and Description |
|---|
DefaultHttpTransportService(ThreadPoolService threadPoolService,
Settings settings) |
public static final String charset
@Inject public DefaultHttpTransportService(ThreadPoolService threadPoolService, Settings settings)
public void header(String header, String value)
header in interface HttpTransportServicepublic HttpTransportService.SResponse post(Url url, Map data)
post in interface HttpTransportServicepublic HttpTransportService.SResponse post(Url url, Map data, int timeout)
post in interface HttpTransportServicepublic HttpTransportService.SResponse post(Url url, Map data, Map<String,String> headers)
post in interface HttpTransportServicepublic HttpTransportService.SResponse post(Url url, Map data, Map<String,String> headers, int timeout)
post in interface HttpTransportServicepublic HttpTransportService.SResponse put(Url url, Map data)
put in interface HttpTransportServicepublic HttpTransportService.SResponse put(Url url, Map data, int timeout)
public HttpTransportService.SResponse put(Url url, Map data, Map<String,String> headers, int timeout)
public HttpTransportService.SResponse put(Url url, Map data, Map<String,String> headers)
put in interface HttpTransportServicepublic HttpTransportService.SResponse get(Url url)
get in interface HttpTransportServicepublic HttpTransportService.SResponse get(Url url, Map<String,String> data)
get in interface HttpTransportServicepublic HttpTransportService.SResponse get(Url url, int timeout)
get in interface HttpTransportServicepublic HttpTransportService.SResponse get(Url url, Map<String,String> data, int timeout)
get in interface HttpTransportServicepublic HttpTransportService.SResponse http(Url url, String jsonData, RestRequest.Method method)
http in interface HttpTransportServicepublic HttpTransportService.SResponse http(Url url, String jsonData, Map<String,String> headers, RestRequest.Method method)
http in interface HttpTransportServicepublic HttpTransportService.SResponse http(Url url, String jsonData, RestRequest.Method method, int timeout)
http in interface HttpTransportServicepublic HttpTransportService.SResponse http(Url url, String jsonData, Map<String,String> headers, RestRequest.Method method, int timeout)
http in interface HttpTransportServicepublic FutureTask<HttpTransportService.SResponse> asyncHttp(Url url, String jsonData, RestRequest.Method method)
asyncHttp in interface HttpTransportServicepublic List<Tuple<Url,HttpTransportService.SResponse>> asyncHttps(Map<Url,String> urlWithPostString, RestRequest.Method method, int timeout)
asyncHttps in interface HttpTransportServicepublic List<HttpTransportService.SResponse> asyncHttps(List<Url> urls, String jsonData, RestRequest.Method method)
asyncHttps in interface HttpTransportServicepublic void shutdownTransport()
Copyright © 2020. All rights reserved.