public class HttpMethod<R> extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.http.client.methods.RequestBuilder |
builder |
protected Configuration |
configuration |
protected Map<String,String> |
headers |
protected Map<String,List<String>> |
params |
Constructor and Description |
---|
HttpMethod(Configuration configuration,
ClientAuthenticator authenticator,
org.apache.http.client.methods.RequestBuilder builder) |
HttpMethod(Configuration configuration,
ClientAuthenticator authenticator,
org.apache.http.client.methods.RequestBuilder builder,
Map<String,List<String>> params,
Map<String,String> headers) |
Modifier and Type | Method and Description |
---|---|
HttpMethodAuthenticator<R> |
authentication() |
HttpMethod<R> |
authorizationBearer(String bearer) |
void |
execute() |
R |
execute(HttpResponseProcessor<R> responseProcessor) |
HttpMethod<R> |
form() |
HttpMethod<R> |
json(byte[] entity) |
HttpMethod<R> |
param(String name,
String value) |
HttpMethod<R> |
params(String name,
String value) |
protected void |
preExecute(org.apache.http.client.methods.RequestBuilder builder) |
HttpMethodResponse<R> |
response() |
protected final org.apache.http.client.methods.RequestBuilder builder
protected final Configuration configuration
public HttpMethod(Configuration configuration, ClientAuthenticator authenticator, org.apache.http.client.methods.RequestBuilder builder)
public HttpMethod(Configuration configuration, ClientAuthenticator authenticator, org.apache.http.client.methods.RequestBuilder builder, Map<String,List<String>> params, Map<String,String> headers)
public void execute()
public R execute(HttpResponseProcessor<R> responseProcessor)
protected void preExecute(org.apache.http.client.methods.RequestBuilder builder)
public HttpMethod<R> authorizationBearer(String bearer)
public HttpMethodResponse<R> response()
public HttpMethodAuthenticator<R> authentication()
public HttpMethod<R> param(String name, String value)
public HttpMethod<R> params(String name, String value)
public HttpMethod<R> json(byte[] entity)
public HttpMethod<R> form()
Copyright © 2019 JBoss by Red Hat. All rights reserved.