Package org.springframework.integration.transformer

Examples of org.springframework.integration.transformer.MessageTransformationException


    public JsonNode transform(String json) {
      try {
        return mapper.readTree(json);
      }
      catch (JsonParseException e) {
        throw new MessageTransformationException("unable to parse input: " + e.getMessage(), e);
      }
      catch (IOException e) {
        throw new MessageTransformationException("unable to create json parser: " + e.getMessage(), e);
      }
    }
View Full Code Here


    public JsonNode transform(String json) {
      try {
        return mapper.readTree(json);
      }
      catch (JsonParseException e) {
        throw new MessageTransformationException("unable to parse input: " + e.getMessage(), e);
      }
      catch (IOException e) {
        throw new MessageTransformationException("unable to create json parser: " + e.getMessage(), e);
      }
    }
View Full Code Here

    JSONObject jsonObject = null;
    try {
      jsonObject = new JSONObject(json);
    }
    catch (JSONException e) {
      throw new MessageTransformationException(e.getMessage());
    }
    return JSONFormatter.fromJSON(jsonObject.toString());
  }
View Full Code Here

    if (payload instanceof String) {
      try {
        payload = jsonToTupleTransformer.transformPayload(payload.toString());
      }
      catch (Exception e) {
        throw new MessageTransformationException(message, e);
      }
    }
    if (payload instanceof Tuple) {
      processTuple((Tuple) payload);
    }
View Full Code Here

TOP

Related Classes of org.springframework.integration.transformer.MessageTransformationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.