Interface ApiVersionInserter
public interface ApiVersionInserter
Contract to determine how to insert an API version into the URI or headers
 of a request.
- Since:
- 7.0
- Author:
- Rossen Stoyanchev
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic ApiVersionInserter.BuilderfromHeader(@Nullable String header) Create a builder for an inserter that sets a header.static ApiVersionInserter.BuilderfromPathSegment(@Nullable Integer pathSegmentIndex) Create a builder for an inserter that inserts a path segment.static ApiVersionInserter.BuilderfromQueryParam(@Nullable String queryParam) Create a builder for an inserter that sets a query parameter.default URIinsertVersion(Object version, URI uri) Insert the version into the URI.default voidinsertVersion(Object version, HttpHeaders headers) Insert the version into the request headers.
- 
Method Details- 
insertVersion
- 
insertVersionInsert the version into the request headers.The default implementation does not modify the supplied headers. - Parameters:
- version- the version to insert
- headers- the request headers
 
- 
fromHeaderCreate a builder for an inserter that sets a header.- Parameters:
- header- the name of a header to hold the version
 
- 
fromQueryParamCreate a builder for an inserter that sets a query parameter.- Parameters:
- queryParam- the name of a query parameter to hold the version
 
- 
fromPathSegmentCreate a builder for an inserter that inserts a path segment.- Parameters:
- pathSegmentIndex- the index of the path segment to hold the version
 
 
-