biz.hammurapi.jms.adapter.converters
Class NopConverter

java.lang.Object
  extended by biz.hammurapi.jms.adapter.converters.NopConverter
All Implemented Interfaces:
Converter

public class NopConverter
extends java.lang.Object
implements Converter

Pass-through converter. Doesn't perform any conversion.

Author:
Pavel

Constructor Summary
NopConverter()
           
 
Method Summary
 javax.jms.Message convert(java.lang.Exception e, javax.jms.Session session, java.util.Map properties, javax.jms.Message request)
          Returns text message with exception stack trace in the body.
 java.lang.Object convert(javax.jms.Message message, java.util.Map properties)
          Returns message.
 javax.jms.Message convert(java.lang.Object obj, javax.jms.Session session, java.util.Map properties, javax.jms.Message request)
          Returns object cast to message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NopConverter

public NopConverter()
Method Detail

convert

public java.lang.Object convert(javax.jms.Message message,
                                java.util.Map properties)
                         throws javax.jms.JMSException
Returns message.

Specified by:
convert in interface Converter
Parameters:
message - Source message
properties - Configuration properties
Returns:
Object created from message data
Throws:
javax.jms.JMSException

convert

public javax.jms.Message convert(java.lang.Object obj,
                                 javax.jms.Session session,
                                 java.util.Map properties,
                                 javax.jms.Message request)
                          throws javax.jms.JMSException
Returns object cast to message.

Specified by:
convert in interface Converter
Parameters:
obj - Source object
session - Session to create message
properties - Configuration properties
request - Request message, can be null.
Returns:
Populated and ready to send message
Throws:
javax.jms.JMSException

convert

public javax.jms.Message convert(java.lang.Exception e,
                                 javax.jms.Session session,
                                 java.util.Map properties,
                                 javax.jms.Message request)
                          throws javax.jms.JMSException
Returns text message with exception stack trace in the body. Correlates by message ID.

Specified by:
convert in interface Converter
session - Session to create message
properties - Configuration properties
request - Request message, can be null.
Returns:
Populated and ready to send message
Throws:
javax.jms.JMSException


Copyright © 2006 Hammurapi Group. All Rights Reserved.