public class PostRequestClientBuilder extends RequestClientBuilder<PostRequestClientBuilder,PostRequestBuilder> implements PostRequestBuilderInterface<PostRequestClientBuilder>
Modifier and Type | Method and Description |
---|---|
PostRequestClientBuilder |
data(BodyElement element)
Set http data from warpper object for Post/Put request
|
PostRequestClientBuilder |
data(byte[] data)
Set http body data for Post/Put request
|
PostRequestClientBuilder |
data(File file)
Set http data from file for Post/Put request
|
PostRequestClientBuilder |
data(InputStream in)
Set http data from inputStream for Post/Put request
|
PostRequestClientBuilder |
data(String body)
Set http data with text.
|
protected ClientBuilder |
findClientBuilder() |
protected HttpRequestBuilder<PostRequestBuilder> |
findRequsetBuilder() |
PostRequestClientBuilder |
multipart(BodyElement... elements)
多段提交
|
protected PostRequestClientBuilder |
self() |
allowRedirects, auth, auth, auth, auth, charset, charset, compress, connectTimeout, cookie, cookie, cookies, execute, header, headers, intercept, intercept, param, params, proxy, proxy, proxy, socketTimeout, timeout, timeToLive, userAgent, verify
public PostRequestClientBuilder data(byte[] data)
BodyRequestBuilderInterface
data
in interface BodyRequestBuilderInterface<PostRequestClientBuilder>
data
- the data to postpublic PostRequestClientBuilder data(InputStream in)
BodyRequestBuilderInterface
data
in interface BodyRequestBuilderInterface<PostRequestClientBuilder>
public PostRequestClientBuilder data(String body)
BodyRequestBuilderInterface
data
in interface BodyRequestBuilderInterface<PostRequestClientBuilder>
public PostRequestClientBuilder data(File file)
BodyRequestBuilderInterface
data
in interface BodyRequestBuilderInterface<PostRequestClientBuilder>
public PostRequestClientBuilder data(BodyElement element)
BodyRequestBuilderInterface
data
in interface BodyRequestBuilderInterface<PostRequestClientBuilder>
public PostRequestClientBuilder multipart(BodyElement... elements)
PostRequestBuilderInterface
multipart
in interface PostRequestBuilderInterface<PostRequestClientBuilder>
protected PostRequestClientBuilder self()
self
in class RequestClientBuilder<PostRequestClientBuilder,PostRequestBuilder>
protected ClientBuilder findClientBuilder()
findClientBuilder
in class RequestClientBuilder<PostRequestClientBuilder,PostRequestBuilder>
protected HttpRequestBuilder<PostRequestBuilder> findRequsetBuilder()
findRequsetBuilder
in class RequestClientBuilder<PostRequestClientBuilder,PostRequestBuilder>
Copyright © 2006–2018 TinyGroup. All rights reserved.