Class EventExportUtils
- java.lang.Object
-
- de.hybris.platform.apiregistryservices.utils.EventExportUtils
-
public class EventExportUtils extends java.lang.ObjectHelper class.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBLACKLIST_PROPstatic java.lang.StringDELIMITER_PROPstatic java.lang.StringEXPORTING_OVERRIDDEN_PROPstatic java.lang.StringEXPORTING_PROP
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancanSplitReference(java.lang.String reference, java.lang.String delimiter)Checks if it possible to split the original string with delimiter.static java.lang.String[]getBlacklist()reads kymaintegrationservices.events.blacklist property return empty array if not definedstatic java.lang.StringgetDelimiter()Reads apiregistryservices.eventPropertyConfiguration.delimiter propertystatic java.lang.StringgetUrlWithDeploymentAddress(java.lang.String url)Replace the ccv2 end point placeholder with the configured value in the given url.static booleanisEventExportActive()reads the kymaintegrationservices.events.exporting property false by defaultstatic booleanisUrlValid(java.lang.String urlString)Checks if the url string is a valid URL regarding to allowed protocolsprotected static booleanisUrlValidInternal(java.lang.String urlString)static java.lang.String[]splitReference(java.lang.String reference, java.lang.String delimiter)Splits the original string to 2 parts
-
-
-
Field Detail
-
DELIMITER_PROP
public static final java.lang.String DELIMITER_PROP
- See Also:
- Constant Field Values
-
EXPORTING_PROP
public static final java.lang.String EXPORTING_PROP
- See Also:
- Constant Field Values
-
EXPORTING_OVERRIDDEN_PROP
public static final java.lang.String EXPORTING_OVERRIDDEN_PROP
- See Also:
- Constant Field Values
-
BLACKLIST_PROP
public static final java.lang.String BLACKLIST_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDelimiter
public static final java.lang.String 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
public static java.lang.String[] getBlacklist()
reads kymaintegrationservices.events.blacklist property return empty array if not defined
-
canSplitReference
public static boolean canSplitReference(java.lang.String reference, java.lang.String delimiter)Checks if it possible to split the original string with delimiter.- Parameters:
reference-delimiter-- Returns:
- boolean
-
splitReference
public static java.lang.String[] splitReference(java.lang.String reference, java.lang.String delimiter)Splits the original string to 2 parts- Parameters:
reference-delimiter-- Returns:
- array of 2 strings
-
isUrlValid
public static boolean isUrlValid(java.lang.String urlString)
Checks if the url string is a valid URL regarding to allowed protocols- Parameters:
urlString- url string that is validated- Returns:
- boolean
-
isUrlValidInternal
protected static boolean isUrlValidInternal(java.lang.String urlString)
-
getUrlWithDeploymentAddress
public static java.lang.String getUrlWithDeploymentAddress(java.lang.String url)
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
-
-