Class PropertiesApiVersionInserter
java.lang.Object
org.springframework.boot.http.client.autoconfigure.PropertiesApiVersionInserter
- All Implemented Interfaces:
ApiVersionInserter
ApiVersionInserter
to apply ApiversionProperties
.- Since:
- 4.0.0
- Author:
- Phillip Webb
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.web.client.ApiVersionInserter
ApiVersionInserter.Builder
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ApiVersionInserter
get
(@Nullable ApiVersionInserter apiVersionInserter, @Nullable ApiVersionFormatter apiVersionFormatter, Stream<ApiversionProperties> propertiesStream) Factory method that returns anApiVersionInserter
to apply the given properties and delegate.static @Nullable ApiVersionInserter
get
(@Nullable ApiVersionInserter apiVersionInserter, @Nullable ApiVersionFormatter apiVersionFormatter, ApiversionProperties... properties) Factory method that returns anApiVersionInserter
to apply the given properties and delegate.insertVersion
(Object version, URI uri) void
insertVersion
(Object version, HttpHeaders headers)
-
Method Details
-
insertVersion
- Specified by:
insertVersion
in interfaceApiVersionInserter
-
insertVersion
- Specified by:
insertVersion
in interfaceApiVersionInserter
-
get
public static @Nullable ApiVersionInserter get(@Nullable ApiVersionInserter apiVersionInserter, @Nullable ApiVersionFormatter apiVersionFormatter, ApiversionProperties... properties) Factory method that returns anApiVersionInserter
to apply the given properties and delegate.- Parameters:
apiVersionInserter
- a delegateApiVersionInserter
that should also apply (may benull
)apiVersionFormatter
- the version formatter to use ornull
properties
- the properties that should be applied- Returns:
- an
ApiVersionInserter
ornull
if no API version should be inserted
-
get
public static @Nullable ApiVersionInserter get(@Nullable ApiVersionInserter apiVersionInserter, @Nullable ApiVersionFormatter apiVersionFormatter, Stream<ApiversionProperties> propertiesStream) Factory method that returns anApiVersionInserter
to apply the given properties and delegate.- Parameters:
apiVersionInserter
- a delegateApiVersionInserter
that should also apply (may benull
)apiVersionFormatter
- the version formatter to use ornull
propertiesStream
- the properties that should be applied- Returns:
- an
ApiVersionInserter
ornull
if no API version should be inserted
-