public static class AuthenticationSteps.HttpRequestBuilder extends Object
AuthenticationSteps.HttpRequest
.Modifier and Type | Method and Description |
---|---|
<T> AuthenticationSteps.HttpRequest<T> |
as(Class<T> type)
Configure the result type and build the
AuthenticationSteps.HttpRequest object. |
static AuthenticationSteps.HttpRequestBuilder |
get(String uriTemplate,
String... uriVariables)
Builder entry point to
GET from uriTemplate . |
static AuthenticationSteps.HttpRequestBuilder |
get(URI uri)
Builder entry point to
GET from uri . |
static AuthenticationSteps.HttpRequestBuilder |
method(HttpMethod method,
String uriTemplate,
String... uriVariables)
Builder entry point to use
HttpMethod for uriTemplate . |
static AuthenticationSteps.HttpRequestBuilder |
post(String uriTemplate,
String... uriVariables)
Builder entry point to
POST to uriTemplate . |
static AuthenticationSteps.HttpRequestBuilder |
post(URI uri)
Builder entry point to
POST to uri . |
AuthenticationSteps.HttpRequestBuilder |
with(HttpEntity<?> httpEntity)
Configure a request
entity . |
AuthenticationSteps.HttpRequestBuilder |
with(HttpHeaders headers)
Configure a request
headers . |
public static AuthenticationSteps.HttpRequestBuilder get(String uriTemplate, String... uriVariables)
GET
from uriTemplate
.uriTemplate
- must not be null or empty.uriVariables
- the variables to expand the template.AuthenticationSteps.HttpRequestBuilder
.public static AuthenticationSteps.HttpRequestBuilder get(URI uri)
GET
from uri
.uri
- must not be null.AuthenticationSteps.HttpRequestBuilder
.public static AuthenticationSteps.HttpRequestBuilder post(String uriTemplate, String... uriVariables)
POST
to uriTemplate
.uriTemplate
- must not be null or empty.uriVariables
- the variables to expand the template.AuthenticationSteps.HttpRequestBuilder
.public static AuthenticationSteps.HttpRequestBuilder post(URI uri)
POST
to uri
.uri
- must not be null.AuthenticationSteps.HttpRequestBuilder
.public static AuthenticationSteps.HttpRequestBuilder method(HttpMethod method, String uriTemplate, String... uriVariables)
HttpMethod
for uriTemplate
.uriTemplate
- must not be null or empty.uriVariables
- the variables to expand the template.AuthenticationSteps.HttpRequestBuilder
.public AuthenticationSteps.HttpRequestBuilder with(HttpEntity<?> httpEntity)
entity
.httpEntity
- must not be null.AuthenticationSteps.HttpRequestBuilder
.public AuthenticationSteps.HttpRequestBuilder with(HttpHeaders headers)
headers
.headers
- must not be null.AuthenticationSteps.HttpRequestBuilder
.public <T> AuthenticationSteps.HttpRequest<T> as(Class<T> type)
AuthenticationSteps.HttpRequest
object.type
- must not be null.AuthenticationSteps.HttpRequest
definition.Copyright © 2016–2019 Pivotal Software, Inc.. All rights reserved.