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.
  • Method Summary

    Modifier and Type
    Method
    Description
    uri(String uri, Object... uriVariables)
    Specify the URI for the request using a URI template and URI variables.
    uri(String uri, Map<String,?> uriVariables)
    Specify the URI for the request using a URI template and URI variables.
    uri(URI uri)
    Specify the URI using an absolute, fully constructed URI.
    uri(Function<UriBuilder,URI> uriFunction)
    Build the URI for the request with a UriBuilder obtained through the UriBuilderFactory configured for this client.
  • Method Details

    • uri

      S uri(URI uri)
      Specify the URI using an absolute, fully constructed URI.
      Returns:
      spec to add headers or perform the exchange
    • uri

      S uri(String uri, Object... uriVariables)
      Specify the URI for the request using a URI template and URI variables. If a UriBuilderFactory was configured for the client (e.g. with a base URI) it will be used to expand the URI template.
      Returns:
      spec to add headers or perform the exchange
    • uri

      S uri(String uri, Map<String,?> uriVariables)
      Specify the URI for the request using a URI template and URI variables. If a UriBuilderFactory was configured for the client (e.g. with a base URI) it will be used to expand the URI template.
      Returns:
      spec to add headers or perform the exchange
    • uri

      S uri(Function<UriBuilder,URI> uriFunction)
      Build the URI for the request with a UriBuilder obtained through the UriBuilderFactory configured for this client.
      Returns:
      spec to add headers or perform the exchange