Class AuthenticationSteps.HttpRequestBuilder
java.lang.Object
org.springframework.vault.authentication.AuthenticationSteps.HttpRequestBuilder
- Enclosing class:
- AuthenticationSteps
Builder for
AuthenticationSteps.HttpRequest
.-
Method Summary
Modifier and TypeMethodDescriptionConfigure the result type and build theAuthenticationSteps.HttpRequest
object.Builder entry point toGET
fromuriTemplate
.Builder entry point toGET
fromuri
.method
(HttpMethod method, String uriTemplate, String... uriVariables) Builder entry point to useHttpMethod
foruriTemplate
.Builder entry point toPOST
touriTemplate
.Builder entry point toPOST
touri
.with
(HttpEntity<?> httpEntity) Configure a requestentity
.with
(HttpHeaders headers) Configure a requestheaders
.
-
Method Details
-
get
public static AuthenticationSteps.HttpRequestBuilder get(String uriTemplate, String... uriVariables) Builder entry point toGET
fromuriTemplate
.- Parameters:
uriTemplate
- must not be null or empty.uriVariables
- the variables to expand the template.- Returns:
- a new
AuthenticationSteps.HttpRequestBuilder
.
-
get
Builder entry point toGET
fromuri
.- Parameters:
uri
- must not be null.- Returns:
- a new
AuthenticationSteps.HttpRequestBuilder
.
-
post
public static AuthenticationSteps.HttpRequestBuilder post(String uriTemplate, String... uriVariables) Builder entry point toPOST
touriTemplate
.- Parameters:
uriTemplate
- must not be null or empty.uriVariables
- the variables to expand the template.- Returns:
- a new
AuthenticationSteps.HttpRequestBuilder
.
-
post
Builder entry point toPOST
touri
.- Parameters:
uri
- must not be null.- Returns:
- a new
AuthenticationSteps.HttpRequestBuilder
.
-
method
public static AuthenticationSteps.HttpRequestBuilder method(HttpMethod method, String uriTemplate, String... uriVariables) Builder entry point to useHttpMethod
foruriTemplate
.- Parameters:
uriTemplate
- must not be null or empty.uriVariables
- the variables to expand the template.- Returns:
- a new
AuthenticationSteps.HttpRequestBuilder
. - Since:
- 2.2
-
with
Configure a requestentity
.- Parameters:
httpEntity
- must not be null.- Returns:
- a new
AuthenticationSteps.HttpRequestBuilder
.
-
with
Configure a requestheaders
.- Parameters:
headers
- must not be null.- Returns:
- a new
AuthenticationSteps.HttpRequestBuilder
.
-
as
Configure the result type and build theAuthenticationSteps.HttpRequest
object.- Parameters:
type
- must not be null.- Returns:
- the
AuthenticationSteps.HttpRequest
definition.
-