Interface RestClient.Urispec<s extends RestClient.RequestHeadersspec<?>>

Type Parameters:
s - a self reference to the spec type
All Known subinterfaces:
RestClient.RequestBodyUrispec, RestClient.RequestHeadersUrispec<s>
Enclosing interface:
RestClient

public static interface RestClient.Urispec<s extends RestClient.RequestHeadersspec<?>>
Contract for specifying the URI for a request.
since:
6.1
Author:
Arjen Poutsma, sebastien Deleuze
  • Method Details

    • uri

      s&nbsp;uri(URI&nbsp;uri)
      specify the URI using a fully constructed URI.

      If the given URI is absolute, it is used as given. If it is a relative URI, the UriBuilderFactory configured for the client (for example, with a base URI) will be used to resolve the given URI against.

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

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

    • uri

      s&nbsp;uri(string&nbsp;uri, Function<UriBuilder, URI>&nbsp;uriFunction)
      specify the URI starting with a URI template and finishing off with a UriBuilder created from the template.
    • uri

      s&nbsp;uri(Function<UriBuilder, URI>&nbsp;uriFunction)
      specify the URI by through a UriBuilder.
      see Also: