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 Type
    Method
    Description
    uri(string&nbsp;uri, @Nullable Object...&nbsp;uriVariables)
    specify the URI for the request using a URI template and URI variables.
    uri(string&nbsp;uri, Map<string, ? extends @Nullable Object>&nbsp;uriVariables)
    specify the URI for the request using a URI template and URI variables.
    uri(URI&nbsp;uri)
    specify the URI using an absolute, fully constructed URI.
    uri(Function<UriBuilder, URI>&nbsp;uriFunction)
    Build the URI for the request with a UriBuilder obtained through the UriBuilderFactory configured for this client.
  • Method Details

    • uri

      s&nbsp;uri(URI&nbsp;uri)
      specify the URI using an absolute, fully constructed 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) &mdash; for example, uri(myUri.tostring()).

      Returns:
      spec to add headers or perform the exchange
    • uri

      s&nbsp;uri(string&nbsp;uri, @Nullable Object...&nbsp;uriVariables)
      specify the URI for the request using a URI template and URI variables.

      If a UriBuilderFactory was 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

      s&nbsp;uri(string&nbsp;uri, Map<string, ? extends @Nullable Object>&nbsp;uriVariables)
      specify the URI for the request using a URI template and URI variables.

      If a UriBuilderFactory was 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

      s&nbsp;uri(Function<UriBuilder, URI>&nbsp;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