Class PropertiesApiVersionInserter
java.lang.Object
org.springframework.boot.http.client.autoconfigure.PropertiesApiVersionInserter
- All Implemented Interfaces:
org.springframework.web.client.ApiVersionInserter
public final class PropertiesApiVersionInserter
extends Object
implements org.springframework.web.client.ApiVersionInserter
ApiVersionInserter backed by ApiversionProperties.- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.web.client.ApiVersionInserter
org.springframework.web.client.ApiVersionInserter.Builder -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertiesApiVersionInserterget(ApiversionProperties.Insert properties) Factory method to get a newPropertiesApiVersionInserterfor the given properties.insertVersion(Object version, URI uri) voidinsertVersion(Object version, org.springframework.http.HttpHeaders headers)
-
Method Details
-
insertVersion
-
insertVersion
- Specified by:
insertVersionin interfaceorg.springframework.web.client.ApiVersionInserter
-
get
Factory method to get a newPropertiesApiVersionInserterfor the given properties.- Parameters:
properties- the API version properties- Returns:
- an
PropertiesApiVersionInserterconfigured from the properties
-