public class StompWireFormat extends Object implements org.apache.activemq.wireformat.WireFormat
| Constructor and Description |
|---|
StompWireFormat() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxDataLength() |
String |
getStompVersion() |
int |
getVersion() |
ByteSequence |
marshal(Object command) |
void |
marshal(Object command,
DataOutput os) |
protected String |
parseAction(DataInput in) |
protected int |
parseContentLength(String contentLength) |
protected HashMap<String,String> |
parseHeaders(DataInput in) |
void |
setMaxDataLength(int maxDataLength) |
void |
setStompVersion(String stompVersion) |
void |
setVersion(int version) |
Object |
unmarshal(ByteSequence packet) |
Object |
unmarshal(DataInput in) |
public StompWireFormat()
public ByteSequence marshal(Object command) throws IOException
marshal in interface org.apache.activemq.wireformat.WireFormatIOExceptionpublic Object unmarshal(ByteSequence packet) throws IOException
unmarshal in interface org.apache.activemq.wireformat.WireFormatIOExceptionpublic void marshal(Object command, DataOutput os) throws IOException
marshal in interface org.apache.activemq.wireformat.WireFormatIOExceptionpublic Object unmarshal(DataInput in) throws IOException
unmarshal in interface org.apache.activemq.wireformat.WireFormatIOExceptionprotected String parseAction(DataInput in) throws IOException
IOExceptionprotected HashMap<String,String> parseHeaders(DataInput in) throws IOException
IOExceptionprotected int parseContentLength(String contentLength) throws ProtocolException
ProtocolExceptionpublic int getVersion()
getVersion in interface org.apache.activemq.wireformat.WireFormatpublic void setVersion(int version)
setVersion in interface org.apache.activemq.wireformat.WireFormatpublic String getStompVersion()
public void setStompVersion(String stompVersion)
public void setMaxDataLength(int maxDataLength)
public int getMaxDataLength()
Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.