Class SimpleMsg
java.lang.Object
org.jpos.util.SimpleMsg
- All Implemented Interfaces:
Loggeable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(PrintStream p, String indent) dumps messageReturns the current message payload.voidsetMsgContent(Object msgContent) Replaces the message payload.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Loggeable
dumpModifier and TypeMethodDescriptiondefault voiddump(PrintStream p, String indent, LogRenderer.Type type) Dumps a representation of this object using the specified renderer type.
-
Constructor Details
-
SimpleMsg
Constructs a SimpleMsg with an XML tag, an optional name attribute, and a payload.- Parameters:
tagName- XML tag namemsgName- optional name attribute, ornullmsgContent- message payload (rendered specially for byte arrays, collections, throwables, and loggeables)
-
SimpleMsg
-
-
Method Details
-
dump
dumps message -
setMsgContent
Replaces the message payload.- Parameters:
msgContent- new payload
-
getMsgContent
Returns the current message payload.- Returns:
- the payload (may be
null)
-