Class EventExportUtils
java.lang.Object
de.hybris.platform.apiregistryservices.utils.EventExportUtils
Helper class.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanSplitReference(String reference, String delimiter) Checks if it possible to split the original string with delimiter.static String[]reads kymaintegrationservices.events.blacklist property return empty array if not definedstatic final StringReads apiregistryservices.eventPropertyConfiguration.delimiter propertystatic StringDeprecated, for removal: This API element is subject to removal in a future version.since 2005.static booleanreads the kymaintegrationservices.events.exporting property false by defaultstatic booleanisUrlValid(String urlString) Checks if the url string is a valid URL regarding to allowed protocolsprotected static booleanisUrlValidInternal(String urlString) static StringreplacePropertyPlaceholders(String argument) Replaces the placeholders (in curly brackets) in the argument with the configured system property values.static String[]splitReference(String reference, String delimiter) Splits the original string to 2 parts
-
Field Details
-
DELIMITER_PROP
- See Also:
-
EXPORTING_PROP
- See Also:
-
EXPORTING_OVERRIDDEN_PROP
- See Also:
-
BLACKLIST_PROP
- See Also:
-
-
Method Details
-
getDelimiter
Reads apiregistryservices.eventPropertyConfiguration.delimiter property- Returns:
- delimiter, default value is .
-
isEventExportActive
public static boolean isEventExportActive()reads the kymaintegrationservices.events.exporting property false by default -
getBlacklist
reads kymaintegrationservices.events.blacklist property return empty array if not defined -
canSplitReference
Checks if it possible to split the original string with delimiter.- Parameters:
reference-delimiter-- Returns:
- boolean
-
splitReference
Splits the original string to 2 parts- Parameters:
reference-delimiter-- Returns:
- array of 2 strings
-
isUrlValid
Checks if the url string is a valid URL regarding to allowed protocols- Parameters:
urlString- url string that is validated- Returns:
- boolean
-
isUrlValidInternal
-
getUrlWithDeploymentAddress
@Deprecated(since="2005", forRemoval=true) public static String getUrlWithDeploymentAddress(String url) Deprecated, for removal: This API element is subject to removal in a future version.since 2005. UsereplacePropertyPlaceholders(String)Replace the ccv2 end point placeholder with the configured value in the given url. expected input with the placeholder format:"{system property name}/rest of the url"- Parameters:
url- url which contains the deployment end point place holder- Returns:
- String if the input string url is empty, null or does not start with "{" then the method returns the given url
- Throws:
ConversionException- in case the method can't find the placeholder in the system property or can't extract the placeholder variable from the given string
-
replacePropertyPlaceholders
Replaces the placeholders (in curly brackets) in the argument with the configured system property values.
-