org.apache.activemq.transport.stomp
Class LegacyFrameTranslator

java.lang.Object
  extended by org.apache.activemq.transport.stomp.LegacyFrameTranslator
All Implemented Interfaces:
FrameTranslator
Direct Known Subclasses:
JmsFrameTranslator

public class LegacyFrameTranslator
extends java.lang.Object
implements FrameTranslator

Implements ActiveMQ 4.0 translations


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.activemq.transport.stomp.FrameTranslator
FrameTranslator.Helper
 
Constructor Summary
LegacyFrameTranslator()
           
 
Method Summary
 java.lang.String convertDestination(ProtocolConverter converter, javax.jms.Destination d)
           
 ActiveMQDestination convertDestination(ProtocolConverter converter, java.lang.String name)
           
 ActiveMQMessage convertFrame(ProtocolConverter converter, StompFrame command)
           
 StompFrame convertMessage(ProtocolConverter converter, ActiveMQMessage message)
           
protected  java.lang.String marshallAdvisory(DataStructure ds)
          Return an Advisory message as a JSON formatted string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyFrameTranslator

public LegacyFrameTranslator()
Method Detail

convertFrame

public ActiveMQMessage convertFrame(ProtocolConverter converter,
                                    StompFrame command)
                             throws javax.jms.JMSException,
                                    ProtocolException
Specified by:
convertFrame in interface FrameTranslator
Throws:
javax.jms.JMSException
ProtocolException

convertMessage

public StompFrame convertMessage(ProtocolConverter converter,
                                 ActiveMQMessage message)
                          throws java.io.IOException,
                                 javax.jms.JMSException
Specified by:
convertMessage in interface FrameTranslator
Throws:
java.io.IOException
javax.jms.JMSException

convertDestination

public java.lang.String convertDestination(ProtocolConverter converter,
                                           javax.jms.Destination d)
Specified by:
convertDestination in interface FrameTranslator

convertDestination

public ActiveMQDestination convertDestination(ProtocolConverter converter,
                                              java.lang.String name)
                                       throws ProtocolException
Specified by:
convertDestination in interface FrameTranslator
Throws:
ProtocolException

marshallAdvisory

protected java.lang.String marshallAdvisory(DataStructure ds)
Return an Advisory message as a JSON formatted string

Parameters:
ds -
Returns:


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.