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
  • Method Details

    • insertVersion

      public URI insertVersion(Object version, URI uri)
      Specified by:
      insertVersion in interface org.springframework.web.client.ApiVersionInserter
    • insertVersion

      public void insertVersion(Object version, org.springframework.http.HttpHeaders headers)
      Specified by:
      insertVersion in interface org.springframework.web.client.ApiVersionInserter
    • get

      Factory method to get a new PropertiesApiVersionInserter for the given properties.
      Parameters:
      properties - the API version properties
      Returns:
      an PropertiesApiVersionInserter configured from the properties