Interface RestTestClient.Urispec<s extends RestTestClient.RequestHeadersspec<?>>
- Type Parameters:
s- a self reference to the spec type
- All Known subinterfaces:
RestTestClient.RequestBodyUrispec, RestTestClient.RequestHeadersUrispec<s>
- Enclosing interface:
RestTestClient
public static interface RestTestClient.Urispec<s extends RestTestClient.RequestHeadersspec<?>>
specification for providing the URI of a request.
- since:
- 7.0
- Author:
- Rob Worsnop, Rossen stoyanchev
-
Method summary
Modifier and TypeMethodDescriptionspecify the URI for the request using a URI template and URI variables.specify the URI for the request using a URI template and URI variables.specify the URI using an absolute, fully constructedURI.uri(Function<UriBuilder, URI> uriFunction) Build the URI for the request with aUriBuilderobtained through theUriBuilderFactoryconfigured for this client.
-
Method Details
-
uri
specify the URI using an absolute, fully constructedURI.If a
UriBuilderFactorywas configured for the client with a base URI, that base URI will not be applied to the suppliedjava.net.URI. If you wish to have a base URI applied to ajava.net.URIyou must invoke eitheruri(string, Object...)oruri(string, Map)— for example,uri(myUri.tostring()).- Returns:
- spec to add headers or perform the exchange
-
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.- Returns:
- spec to add headers or perform the exchange
-
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.- Returns:
- spec to add headers or perform the exchange
-
uri
Build the URI for the request with aUriBuilderobtained through theUriBuilderFactoryconfigured for this client.- Returns:
- spec to add headers or perform the exchange
-