public class CurlRequest extends Object
| 修飾子とタイプ | クラス | 説明 |
|---|---|---|
static interface |
CurlRequest.ConnectionBuilder |
|
static class |
CurlRequest.RequestProcessor |
| 修飾子とタイプ | フィールド | 説明 |
|---|---|---|
protected String |
body |
|
protected String |
encoding |
|
protected List<String[]> |
headerList |
|
protected Curl.Method |
method |
|
protected List<String> |
paramList |
|
protected Proxy |
proxy |
|
protected ForkJoinPool |
threadPool |
|
protected String |
url |
| コンストラクタ | 説明 |
|---|---|
CurlRequest(Curl.Method method,
String url) |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
String |
body() |
|
CurlRequest |
body(String body) |
|
void |
connect(Consumer<HttpURLConnection> actionListener,
Consumer<Exception> exceptionListener) |
|
protected String |
encode(String value) |
|
String |
encoding() |
|
CurlRequest |
encoding(String encoding) |
|
CurlResponse |
execute() |
|
void |
execute(Consumer<CurlResponse> actionListener,
Consumer<Exception> exceptionListener) |
|
CurlRequest |
header(String key,
String value) |
|
Curl.Method |
method() |
|
CurlRequest |
onConnect(CurlRequest.ConnectionBuilder connectionBuilder) |
|
CurlRequest |
param(String key,
String value) |
|
Proxy |
proxy() |
|
CurlRequest |
proxy(Proxy proxy) |
|
CurlRequest |
threadPool(ForkJoinPool threadPool) |
protected String url
protected Proxy proxy
protected String encoding
protected Curl.Method method
protected String body
protected ForkJoinPool threadPool
public CurlRequest(Curl.Method method, String url)
public Proxy proxy()
public String encoding()
public Curl.Method method()
public String body()
public CurlRequest proxy(Proxy proxy)
public CurlRequest encoding(String encoding)
public CurlRequest body(String body)
public CurlRequest onConnect(CurlRequest.ConnectionBuilder connectionBuilder)
public CurlRequest param(String key, String value)
public CurlRequest header(String key, String value)
public void connect(Consumer<HttpURLConnection> actionListener, Consumer<Exception> exceptionListener)
public void execute(Consumer<CurlResponse> actionListener, Consumer<Exception> exceptionListener)
public CurlResponse execute()
public CurlRequest threadPool(ForkJoinPool threadPool)
Copyright © 2011–2018 CodeLibs Project. All rights reserved.