Class LogicLocation
- java.lang.Object
-
- de.hybris.platform.integrationservices.scripting.LogicLocation
-
public class LogicLocation extends java.lang.ObjectContains the information required to execute externally hosted logic. The scheme of this logic and the location will be present. This object is built from a URI.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static LogicLocationfrom(java.lang.String uri)Creates aLogicLocationfrom the given URI (e.g.@NotBlank java.lang.StringgetLocation()@NotNull LogicLocationSchemegetScheme()inthashCode()static booleanisValid(java.lang.String uri)Tests whether the given URI is a valid logic locationjava.lang.StringtoString()
-
-
-
Method Detail
-
from
public static LogicLocation from(java.lang.String uri) throws CannotCreateLogicLocationException
Creates aLogicLocationfrom the given URI (e.g. model://someModelScript)- Parameters:
uri- URI to create from- Returns:
- LogicLocation
- Throws:
CannotCreateLogicLocationException- when the provided URI can't be parsed to create a LogicLocation
-
isValid
public static boolean isValid(java.lang.String uri)
Tests whether the given URI is a valid logic location- Parameters:
uri- URI to test- Returns:
trueif the URL is valid, elsefalse
-
getScheme
@NotNull public @NotNull LogicLocationScheme getScheme()
-
getLocation
@NotBlank public @NotBlank java.lang.String getLocation()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-