Class HttpMethod<R>
- java.lang.Object
-
- org.keycloak.authorization.client.util.HttpMethod<R>
-
public class HttpMethod<R> extends Object
- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description HttpMethod(Configuration configuration, ClientCredentialsProvider authenticator, org.apache.http.client.methods.RequestBuilder builder)
HttpMethod(Configuration configuration, ClientCredentialsProvider authenticator, org.apache.http.client.methods.RequestBuilder builder, Map<String,List<String>> params, Map<String,String> headers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
HttpMethod
public HttpMethod(Configuration configuration, ClientCredentialsProvider authenticator, org.apache.http.client.methods.RequestBuilder builder)
-
HttpMethod
public HttpMethod(Configuration configuration, ClientCredentialsProvider authenticator, org.apache.http.client.methods.RequestBuilder builder, Map<String,List<String>> params, Map<String,String> headers)
-
-
Method Detail
-
execute
public void execute()
-
execute
public R execute(HttpResponseProcessor<R> responseProcessor)
-
preExecute
protected void preExecute(org.apache.http.client.methods.RequestBuilder builder)
-
authorizationBearer
public HttpMethod<R> authorizationBearer(String bearer)
-
response
public HttpMethodResponse<R> response()
-
authentication
public HttpMethodAuthenticator<R> authentication()
-
param
public HttpMethod<R> param(String name, String value)
-
params
public HttpMethod<R> params(String name, String value)
-
json
public HttpMethod<R> json(byte[] entity)
-
form
public HttpMethod<R> form()
-
-