S
- a self reference to the spec typepublic static interface WebTestClient.UriSpec<S extends WebTestClient.RequestHeadersSpec<?>>
Modifier and Type | Method and Description |
---|---|
S |
uri(Function<UriBuilder,URI> uriFunction)
Build the URI for the request with a
UriBuilder obtained
through the UriBuilderFactory configured for this client. |
S |
uri(String uri,
Map<String,?> uriVariables)
Specify the URI for the request using a URI template and URI variables.
|
S |
uri(String uri,
Object... uriVariables)
Specify the URI for the request using a URI template and URI variables.
|
S |
uri(URI uri)
Specify the URI using an absolute, fully constructed
URI . |
S uri(URI uri)
URI
.
If a UriBuilderFactory
was configured for the client with
a base URI, that base URI will not be applied to the
supplied java.net.URI
. If you wish to have a base URI applied to a
java.net.URI
you must invoke either uri(String, Object...)
or uri(String, Map)
— for example, uri(myUri.toString())
.
S uri(String uri, Object... uriVariables)
If a UriBuilderFactory
was configured for the client (e.g.
with a base URI) it will be used to expand the URI template.
S uri(String uri, Map<String,?> uriVariables)
If a UriBuilderFactory
was configured for the client (e.g.
with a base URI) it will be used to expand the URI template.
S uri(Function<UriBuilder,URI> uriFunction)
UriBuilder
obtained
through the UriBuilderFactory
configured for this client.