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 summary
Modifier and TypeMethodDescriptionspecify the URI for the request using a URI template and URI variables.uri(string uri, Function<UriBuilder, URI> uriFunction) specify the URI starting with a URI template and finishing off with aUriBuildercreated from the template.specify the URI for the request using a URI template and URI variables.specify the URI using a fully constructedURI.uri(Function<UriBuilder, URI> uriFunction) specify the URI by through aUriBuilder.
-
Method Details
-
uri
specify the URI using a fully constructedURI.If the given URI is absolute, it is used as given. If it is a relative URI, the
UriBuilderFactoryconfigured for the client (for example, with a base URI) will be used to resolve the given URI against. -
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. -
uri
-
uri
specify the URI starting with a URI template and finishing off with aUriBuildercreated from the template. -
uri
specify the URI by through aUriBuilder.- see Also:
-