Class LogicLocation
java.lang.Object
de.hybris.platform.integrationservices.scripting.LogicLocation
Contains 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
Modifier and TypeMethodDescriptionbooleanstatic LogicLocationCreates aLogicLocationfrom the given URI (e.g.static LogicLocationfromUri(String uri, LogicLocationScheme scheme) Creates aLogicLocationfrom the given URI.@NotBlank String@NotNull LogicLocationSchemeinthashCode()static booleanTests whether the given URI is a valid logic locationtoString()
-
Method Details
-
from
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
-
fromUri
public static LogicLocation fromUri(String uri, LogicLocationScheme scheme) throws CannotCreateLogicLocationException Creates aLogicLocationfrom the given URI. If the URI does not contain scheme the provided default scheme will be used.- Parameters:
uri- a location URI stringscheme- a default scheme to use for theLogicLocationbeing created, if theuridoes not contain a scheme. Otherwise, the scheme from theuriwill be used.- Returns:
- new
LogicLocationinstance - Throws:
CannotCreateLogicLocationException- when the provideduridoes not represent a valid logic location
-
isValid
Tests whether the given URI is a valid logic location- Parameters:
uri- URI to test- Returns:
trueif the URL is valid, elsefalse
-
getScheme
-
getLocation
-
equals
-
hashCode
public int hashCode() -
toString
-