Class DefaultApiVendorExtensionStrategy
java.lang.Object
de.hybris.platform.webservicescommons.swagger.strategies.ConfigApiVendorExtensionStrategy
de.hybris.platform.webservicescommons.swagger.strategies.impl.DefaultApiVendorExtensionStrategy
- All Implemented Interfaces:
ApiVendorExtensionStrategy
Default implementation of
ApiVendorExtensionStrategy.
It provides vendor extensions describing API. The result list includes: "x-sap-api-type", "x-sap-shortText" and "x-sap-stateInfo" extensions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class de.hybris.platform.webservicescommons.swagger.strategies.ConfigApiVendorExtensionStrategy
CONFIG_ARRAY_DELIMITER, CONFIG_DELIMITER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetApiType(String configPrefix) protected StringgetShortText(String configPrefix) protected StringgetVendorExtensions(String configPrefix) Provides a list of vendor extensions for the API based on the configuration prefix.Methods inherited from class de.hybris.platform.webservicescommons.swagger.strategies.ConfigApiVendorExtensionStrategy
getConfigArray, getConfigKey, getConfigValue, setConfigurationService
-
Field Details
-
EXT_API_TYPE
- See Also:
-
EXT_SHORT_TEXT
- See Also:
-
EXT_STATE_INFO
- See Also:
-
EXT_STATE
- See Also:
-
CONFIG_API_TYPE
- See Also:
-
CONFIG_SHORT_TEXT
- See Also:
-
CONFIG_STATE
- See Also:
-
-
Constructor Details
-
DefaultApiVendorExtensionStrategy
public DefaultApiVendorExtensionStrategy()
-
-
Method Details
-
getVendorExtensions
Description copied from interface:ApiVendorExtensionStrategyProvides a list of vendor extensions for the API based on the configuration prefix.- Parameters:
configPrefix- configuration prefix- Returns:
- list of vendor extension
-
getApiType
-
getShortText
-
getState
-