Class MessageUtils

java.lang.Object
org.citrusframework.util.MessageUtils

public class MessageUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    hasJsonPayload(org.citrusframework.message.Message message)
    Checks if message payload is of type Json.
    static boolean
    hasXmlPayload(org.citrusframework.message.Message message)
    Checks if given message payload is of type XML.
    static boolean
    hasYamlPayload(org.citrusframework.message.Message message)
    Checks if message payload is of type Json.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • hasXmlPayload

      public static boolean hasXmlPayload(org.citrusframework.message.Message message)
      Checks if given message payload is of type XML. An empty payload is considered to be a valid Json payload.
      Parameters:
      message - to check.
      Returns:
      true if message payload is XML, false otherwise.
    • hasJsonPayload

      public static boolean hasJsonPayload(org.citrusframework.message.Message message)
      Checks if message payload is of type Json. An empty payload is considered to be a valid Json payload.
      Parameters:
      message - to check.
      Returns:
      true if payload is Json, false otherwise.
    • hasYamlPayload

      public static boolean hasYamlPayload(org.citrusframework.message.Message message)
      Checks if message payload is of type Json. An empty payload is considered to be a valid Json payload.
      Parameters:
      message - to check.
      Returns:
      true if payload is Json, false otherwise.