org.apache.activemq.transport.stomp
Interface FrameTranslator

All Known Implementing Classes:
LegacyFrameTranslator

public interface FrameTranslator

Implementations of this interface are used to map back and forth from Stomp to ActiveMQ. There are several standard mappings which are semantically the same, the inner class, Helper, provides functions to copy those properties from one to the other


Nested Class Summary
static class FrameTranslator.Helper
          Helper class which holds commonly needed functions used when implementing FrameTranslators
 
Method Summary
 java.lang.String convertDestination(javax.jms.Destination d)
           
 ActiveMQDestination convertDestination(java.lang.String name)
           
 ActiveMQMessage convertFrame(StompFrame frame)
           
 StompFrame convertMessage(ActiveMQMessage message)
           
 

Method Detail

convertFrame

ActiveMQMessage convertFrame(StompFrame frame)
                             throws javax.jms.JMSException,
                                    ProtocolException
Throws:
javax.jms.JMSException
ProtocolException

convertMessage

StompFrame convertMessage(ActiveMQMessage message)
                          throws java.io.IOException,
                                 javax.jms.JMSException
Throws:
java.io.IOException
javax.jms.JMSException

convertDestination

java.lang.String convertDestination(javax.jms.Destination d)

convertDestination

ActiveMQDestination convertDestination(java.lang.String name)
                                       throws ProtocolException
Throws:
ProtocolException


Copyright © 2009 Apache Software Foundation. All Rights Reserved.