public class BaseOkHttpRequester extends Object implements Requester
Requester.Formatters| Constructor and Description |
|---|
BaseOkHttpRequester(HttpClientWrapper client,
UrlProvider urlProvider) |
| Modifier and Type | Method and Description |
|---|---|
ResponseDelegate |
delete() |
ResponseDelegate |
delete(String contentType,
byte[] body) |
ResponseDelegate |
get() |
ResponseDelegate |
head() |
Requester |
header(String name,
Iterable<String> value) |
Requester |
header(String name,
String value) |
Requester |
header(String name,
String[] value) |
Requester |
parameter(String name,
Iterable<String> value) |
Requester |
parameter(String name,
String value) |
Requester |
parameter(String name,
String[] value) |
protected TreeMap<String,String[]> |
parameters() |
ResponseDelegate |
patch(String contentType,
byte[] body) |
protected String |
path() |
Requester |
path(String path) |
ResponseDelegate |
post(String contentType,
byte[] body) |
ResponseDelegate |
put(String contentType,
byte[] body) |
public BaseOkHttpRequester(HttpClientWrapper client, UrlProvider urlProvider)
public ResponseDelegate get() throws IOException
get in interface RequesterIOExceptionpublic ResponseDelegate head() throws IOException
head in interface RequesterIOExceptionpublic ResponseDelegate post(String contentType, byte[] body) throws IOException
post in interface RequesterIOExceptionpublic ResponseDelegate put(String contentType, byte[] body) throws IOException
put in interface RequesterIOExceptionpublic ResponseDelegate patch(String contentType, byte[] body) throws IOException
patch in interface RequesterIOExceptionpublic ResponseDelegate delete() throws IOException
delete in interface RequesterIOExceptionpublic ResponseDelegate delete(String contentType, byte[] body) throws IOException
delete in interface RequesterIOExceptionprotected String path()
Copyright © 2019. All rights reserved.