Class MessageInspector
- java.lang.Object
-
- com.levigo.jadice.server.jms.shared.MessageInspector
-
public final class MessageInspector extends Object
Utility to inspect JMSMessage
s.- Since:
- jadice server 4.3.1.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MessageInspector.Direction
Signalizes the direction of the JMSMessage
s.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
inspect(javax.jms.Message message, CommunicationSide side, MessageInspector.Direction direction)
Prints the details of theMessage
as DEBUG to theLogger
MessageInspector
.static void
inspect(javax.jms.Message message, CommunicationSide side, MessageInspector.Direction direction, PrintStream stream)
Prints the details of theMessage
into the given stream.
-
-
-
Method Detail
-
inspect
public static void inspect(javax.jms.Message message, CommunicationSide side, MessageInspector.Direction direction) throws javax.jms.JMSException
Prints the details of theMessage
as DEBUG to theLogger
MessageInspector
.- Parameters:
message
- the JMS message to inspectside
- the side this componen lives on: CLIENT or SERVERdirection
- signalize if the message to inspect is incoming or outgoing- Throws:
javax.jms.JMSException
- if accessing theMessage
failed- Since:
- jadice server 5.3.0.0
-
inspect
public static void inspect(javax.jms.Message message, CommunicationSide side, MessageInspector.Direction direction, PrintStream stream) throws javax.jms.JMSException
Prints the details of theMessage
into the given stream.- Parameters:
message
- the JMS message to inspectside
- the side this componen lives on: CLIENT or SERVERdirection
- signalize if the message to inspect is incoming or outgoingstream
- where to print the message details- Throws:
javax.jms.JMSException
- if accessing theMessage
failed- Since:
- jadice server 5.3.0.0
-
-