org.apache.activemq.transport.stomp
Class StompWireFormat

java.lang.Object
  extended by org.apache.activemq.transport.stomp.StompWireFormat
All Implemented Interfaces:
WireFormat

public class StompWireFormat
extends java.lang.Object
implements WireFormat

Implements marshalling and unmarsalling the Stomp protocol.


Constructor Summary
StompWireFormat()
           
 
Method Summary
 java.lang.String getStompVersion()
           
 int getVersion()
           
 ByteSequence marshal(java.lang.Object command)
           
 void marshal(java.lang.Object command, java.io.DataOutput os)
           
protected  java.lang.String parseAction(java.io.DataInput in)
           
protected  int parseContentLength(java.lang.String contentLength)
           
protected  java.util.HashMap<java.lang.String,java.lang.String> parseHeaders(java.io.DataInput in)
           
 void setStompVersion(java.lang.String stompVersion)
           
 void setVersion(int version)
           
 java.lang.Object unmarshal(ByteSequence packet)
           
 java.lang.Object unmarshal(java.io.DataInput in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StompWireFormat

public StompWireFormat()
Method Detail

marshal

public ByteSequence marshal(java.lang.Object command)
                     throws java.io.IOException
Specified by:
marshal in interface WireFormat
Throws:
java.io.IOException

unmarshal

public java.lang.Object unmarshal(ByteSequence packet)
                           throws java.io.IOException
Specified by:
unmarshal in interface WireFormat
Throws:
java.io.IOException

marshal

public void marshal(java.lang.Object command,
                    java.io.DataOutput os)
             throws java.io.IOException
Specified by:
marshal in interface WireFormat
Throws:
java.io.IOException

unmarshal

public java.lang.Object unmarshal(java.io.DataInput in)
                           throws java.io.IOException
Specified by:
unmarshal in interface WireFormat
Throws:
java.io.IOException

parseAction

protected java.lang.String parseAction(java.io.DataInput in)
                                throws java.io.IOException
Throws:
java.io.IOException

parseHeaders

protected java.util.HashMap<java.lang.String,java.lang.String> parseHeaders(java.io.DataInput in)
                                                                     throws java.io.IOException
Throws:
java.io.IOException

parseContentLength

protected int parseContentLength(java.lang.String contentLength)
                          throws ProtocolException
Throws:
ProtocolException

getVersion

public int getVersion()
Specified by:
getVersion in interface WireFormat

setVersion

public void setVersion(int version)
Specified by:
setVersion in interface WireFormat

getStompVersion

public java.lang.String getStompVersion()

setStompVersion

public void setStompVersion(java.lang.String stompVersion)


Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.