Class ServerApiVendorExtensionStrategy

java.lang.Object
de.hybris.platform.webservicescommons.swagger.strategies.ConfigApiVendorExtensionStrategy
de.hybris.platform.webservicescommons.swagger.strategies.impl.ServerApiVendorExtensionStrategy
All Implemented Interfaces:
ApiVendorExtensionStrategy

public class ServerApiVendorExtensionStrategy extends ConfigApiVendorExtensionStrategy
Implementation of ApiVendorExtensionStrategy.

It provides extension for configuring server settings. The result list includes "x-server" extensions.

  • Field Details

  • Constructor Details

    • ServerApiVendorExtensionStrategy

      public ServerApiVendorExtensionStrategy()
  • Method Details

    • getVendorExtensions

      public List<springfox.documentation.service.VendorExtension> getVendorExtensions(String configPrefix)
      Description copied from interface: ApiVendorExtensionStrategy
      Provides a list of vendor extensions for the API based on the configuration prefix.
      Parameters:
      configPrefix - configuration prefix
      Returns:
      list of vendor extension
    • getServerConfigValue

      protected String getServerConfigValue(String configPrefix, String serverName, String relativeConfigKey)
    • getServerTemplatesConfigValue

      protected String getServerTemplatesConfigValue(String configPrefix, String serverName, String urlPlaceholder, String relativeConfigKey)
    • getServersNames

      protected String[] getServersNames(String configPrefix)
    • getServers

      protected List<Map<String,Object>> getServers(String configPrefix)
    • getTemplates

      protected Map<String,Object> getTemplates(String configPrefix, String serverName, String serverUrl)
    • addTemplateDescriptionToMap

      protected void addTemplateDescriptionToMap(Map<String,Object> templateEntries, String configPrefix, String serverName, String urlPlaceholderName)
    • addTemplateDefaultToMap

      protected void addTemplateDefaultToMap(Map<String,Object> templateEntries, String configPrefix, String serverName, String urlPlaceholderName)
    • addTemplateEnumToMap

      protected void addTemplateEnumToMap(Map<String,Object> templateEntries, String configPrefix, String serverName, String urlPlaceholderName)