Interface WebTestClient.Urispec<s extends WebTestClient.RequestHeadersspec<?>>
- Type Parameters:
s- a self reference to the spec type
- All Known subinterfaces:
WebTestClient.RequestBodyUrispec, WebTestClient.RequestHeadersUrispec<s>
- Enclosing interface:
WebTestClient
public static interface WebTestClient.Urispec<s extends WebTestClient.RequestHeadersspec<?>>
specification for providing the URI of a request.
- since:
- 5.0
- Author:
- Rossen stoyanchev, Brian Clozel, sam Brannen, MichaĆ Rowicki
-
Method summary
Modifier and TypeMethodDescriptionspecify the URI for the request using a URI template and URI variables.specify the URI for the request using a URI template and URI variables.specify the URI using an absolute, fully constructedURI.uri(Function<UriBuilder, URI> uriFunction) Build the URI for the request with aUriBuilderobtained through theUriBuilderFactoryconfigured for this client.
-
Method Details
-
uri
specify the URI using an absolute, fully constructedURI.If a
UriBuilderFactorywas configured for the client with a base URI, that base URI will not be applied to the suppliedjava.net.URI. If you wish to have a base URI applied to ajava.net.URIyou must invoke eitheruri(string, Object...)oruri(string, Map)— for example,uri(myUri.tostring()).- Returns:
- spec to add headers or perform the exchange
-
uri
specify the URI for the request using a URI template and URI variables.If a
UriBuilderFactorywas configured for the client (for example, with a base URI) it will be used to expand the URI template.- Returns:
- spec to add headers or perform the exchange
-
uri
specify the URI for the request using a URI template and URI variables.If a
UriBuilderFactorywas configured for the client (for example, with a base URI) it will be used to expand the URI template.- Returns:
- spec to add headers or perform the exchange
-
uri
Build the URI for the request with aUriBuilderobtained through theUriBuilderFactoryconfigured for this client.- Returns:
- spec to add headers or perform the exchange
-