public static class HttpTool.HttpRequestBuilder<R extends org.apache.http.client.methods.HttpRequestBase>
extends java.lang.Object
Constructor and Description |
---|
HttpRequestBuilder(java.lang.Class<R> requestClass) |
Modifier and Type | Method and Description |
---|---|
HttpTool.HttpRequestBuilder<R> |
body(byte[] body) |
HttpTool.HttpRequestBuilder<R> |
body(java.util.Map<java.lang.String,java.lang.String> body) |
HttpTool.HttpRequestBuilder<R> |
body(java.lang.String body) |
R |
build() |
HttpTool.HttpRequestBuilder<R> |
headers(<any> headers) |
HttpTool.HttpRequestBuilder<R> |
headers(java.util.Map<java.lang.String,java.lang.String> headers) |
HttpTool.HttpRequestBuilder<R> |
uri(java.net.URI uri) |
public HttpRequestBuilder(java.lang.Class<R> requestClass)
public HttpTool.HttpRequestBuilder<R> uri(java.net.URI uri)
public HttpTool.HttpRequestBuilder<R> headers(java.util.Map<java.lang.String,java.lang.String> headers)
public HttpTool.HttpRequestBuilder<R> headers(<any> headers)
public HttpTool.HttpRequestBuilder<R> body(byte[] body)
public HttpTool.HttpRequestBuilder<R> body(java.lang.String body)
public HttpTool.HttpRequestBuilder<R> body(java.util.Map<java.lang.String,java.lang.String> body)
public R build()