public class OkHttpHttpInvoker extends Object implements HttpInvoker
| Modifier and Type | Field and Description |
|---|---|
protected static String |
HTTP_CLIENT |
| Constructor and Description |
|---|
OkHttpHttpInvoker() |
| Modifier and Type | Method and Description |
|---|---|
protected okhttp3.OkHttpClient.Builder |
createClientBuilder(BindingSession session)
Creates a OkHttpClient.Builder and configures it.
|
Response |
invokeDELETE(UrlBuilder url,
BindingSession session)
Executes a HTTP DELETE request.
|
Response |
invokeGET(UrlBuilder url,
BindingSession session)
Executes a HTTP GET request.
|
Response |
invokeGET(UrlBuilder url,
BindingSession session,
BigInteger offset,
BigInteger length)
Executes a HTTP GET request.
|
Response |
invokePOST(UrlBuilder url,
String contentType,
Output writer,
BindingSession session)
Executes a HTTP POST request.
|
Response |
invokePUT(UrlBuilder url,
String contentType,
Map<String,String> headers,
Output writer,
BindingSession session)
Executes a HTTP PUT request.
|
protected static final String HTTP_CLIENT
public Response invokeGET(UrlBuilder url, BindingSession session)
HttpInvokerinvokeGET in interface HttpInvokerpublic Response invokeGET(UrlBuilder url, BindingSession session, BigInteger offset, BigInteger length)
HttpInvokerinvokeGET in interface HttpInvokerpublic Response invokePOST(UrlBuilder url, String contentType, Output writer, BindingSession session)
HttpInvokerinvokePOST in interface HttpInvokerpublic Response invokePUT(UrlBuilder url, String contentType, Map<String,String> headers, Output writer, BindingSession session)
HttpInvokerinvokePUT in interface HttpInvokerpublic Response invokeDELETE(UrlBuilder url, BindingSession session)
HttpInvokerinvokeDELETE in interface HttpInvokerprotected okhttp3.OkHttpClient.Builder createClientBuilder(BindingSession session)
session - the binding sessionCopyright © 2009–2016 The Apache Software Foundation. All rights reserved.