org.apache.activemq.transport.stomp
Class StompWireFormat
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StompWireFormat
public StompWireFormat()
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.