public class PostRequestBuilder extends HttpRequestBuilder<PostRequestBuilder> implements PostRequestBuilderInterface<PostRequestBuilder>
bodyElements, charset, cookies, headers, methodMode, parameters, url
Constructor and Description |
---|
PostRequestBuilder(MethodMode methodMode,
String url) |
Modifier and Type | Method and Description |
---|---|
PostRequestBuilder |
data(BodyElement element)
Set http data from warpper object for Post/Put request
|
PostRequestBuilder |
data(byte[] data)
Set http body data for Post/Put request
|
PostRequestBuilder |
data(File file)
Set http data from file for Post/Put request
|
PostRequestBuilder |
data(InputStream in)
Set http data from inputStream for Post/Put request
|
PostRequestBuilder |
data(String body)
Set http data with text.
|
Request |
execute()
执行请求操作
|
PostRequestBuilder |
multipart(BodyElement... elements)
多段提交
|
protected PostRequestBuilder |
self() |
charset, charset, cookie, cookie, cookies, header, headers, param, params
public PostRequestBuilder(MethodMode methodMode, String url)
public PostRequestBuilder data(byte[] data)
BodyRequestBuilderInterface
data
in interface BodyRequestBuilderInterface<PostRequestBuilder>
data
- the data to postpublic PostRequestBuilder data(InputStream in)
BodyRequestBuilderInterface
data
in interface BodyRequestBuilderInterface<PostRequestBuilder>
public PostRequestBuilder data(String body)
BodyRequestBuilderInterface
data
in interface BodyRequestBuilderInterface<PostRequestBuilder>
public PostRequestBuilder data(File file)
BodyRequestBuilderInterface
data
in interface BodyRequestBuilderInterface<PostRequestBuilder>
public PostRequestBuilder data(BodyElement element)
BodyRequestBuilderInterface
data
in interface BodyRequestBuilderInterface<PostRequestBuilder>
public PostRequestBuilder multipart(BodyElement... elements)
PostRequestBuilderInterface
multipart
in interface PostRequestBuilderInterface<PostRequestBuilder>
public Request execute()
Executable
execute
in interface Executable<Request>
protected PostRequestBuilder self()
self
in class HttpRequestBuilder<PostRequestBuilder>
Copyright © 2006–2018 TinyGroup. All rights reserved.