Package org.citrusframework.util
Class MessageUtils
java.lang.Object
org.citrusframework.util.MessageUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasJsonPayload(org.citrusframework.message.Message message) Checks if message payload is of type Json.static booleanhasXmlPayload(org.citrusframework.message.Message message) Checks if given message payload is of type XML.static booleanhasYamlPayload(org.citrusframework.message.Message message) Checks if message payload is of type Json.
-
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.
-