public class CurlRequest extends Object
| 修飾子とタイプ | クラス | 説明 |
|---|---|---|
static class |
CurlRequest.RequestProcessor |
| 修飾子とタイプ | フィールド | 説明 |
|---|---|---|
protected String |
body |
|
protected String |
encoding |
|
protected List<String[]> |
headerList |
|
protected static Logger |
logger |
|
protected Curl.Method |
method |
|
protected List<String> |
paramList |
|
protected Proxy |
proxy |
|
protected ForkJoinPool |
threadPool |
|
protected int |
threshold |
|
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(BiConsumer<CurlRequest,HttpURLConnection> connectionBuilder) |
|
CurlRequest |
param(String key,
String value) |
|
Proxy |
proxy() |
|
CurlRequest |
proxy(Proxy proxy) |
|
CurlRequest |
threadPool(ForkJoinPool threadPool) |
|
int |
threshold() |
|
CurlRequest |
threshold(int threshold) |
protected static final Logger logger
protected String url
protected Proxy proxy
protected String encoding
protected int threshold
protected Curl.Method method
protected String body
protected ForkJoinPool threadPool
public CurlRequest(Curl.Method method, String url)
public Proxy proxy()
public String encoding()
public int threshold()
public Curl.Method method()
public String body()
public CurlRequest proxy(Proxy proxy)
public CurlRequest encoding(String encoding)
public CurlRequest threshold(int threshold)
public CurlRequest body(String body)
public CurlRequest onConnect(BiConsumer<CurlRequest,HttpURLConnection> 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.