Class JoltSpecBuilder
- java.lang.Object
-
- org.swisspush.gateleen.core.json.transform.JoltSpecBuilder
-
-
Constructor Summary
Constructors Constructor Description JoltSpecBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JoltSpecbuildSpec(String jsonSpec)SeebuildSpec(String, boolean)withfalsefor param withMetadatastatic JoltSpecbuildSpec(String jsonSpec, boolean withMetadata)Builds aJoltSpecobject based on the provided string representation of the json spec.
-
-
-
Method Detail
-
buildSpec
public static JoltSpec buildSpec(String jsonSpec) throws JoltSpecException
SeebuildSpec(String, boolean)withfalsefor param withMetadata- Throws:
JoltSpecException
-
buildSpec
public static JoltSpec buildSpec(String jsonSpec, boolean withMetadata) throws JoltSpecException
Builds aJoltSpecobject based on the provided string representation of the json spec. If an error occurs during the creation of the spec, aJoltSpecExceptionis thrown.- Parameters:
jsonSpec- the string representation of the specwithMetadata- does the json input to use the spec against has meta data- Returns:
- returns a
JoltSpec - Throws:
JoltSpecException- when an error occurred during spec parsing
-
-