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