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 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
 String convertDestination(ProtocolConverter converter, Destination d)
           
 ActiveMQDestination convertDestination(ProtocolConverter converter, String name, boolean forceFallback)
           
 ActiveMQMessage convertFrame(ProtocolConverter converter, StompFrame command)
           
 StompFrame convertMessage(ProtocolConverter converter, ActiveMQMessage message)
           
protected  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 JMSException,
                                    ProtocolException
Specified by:
convertFrame in interface FrameTranslator
Throws:
JMSException
ProtocolException

convertMessage

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

convertDestination

public String convertDestination(ProtocolConverter converter,
                                 Destination d)
Specified by:
convertDestination in interface FrameTranslator

convertDestination

public ActiveMQDestination convertDestination(ProtocolConverter converter,
                                              String name,
                                              boolean forceFallback)
                                       throws ProtocolException
Specified by:
convertDestination in interface FrameTranslator
Throws:
ProtocolException

marshallAdvisory

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

Parameters:
ds -
Returns:


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.