public class StompWireFormat extends java.lang.Object implements WireFormat
| Constructor and Description |
|---|
StompWireFormat() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public ByteSequence marshal(java.lang.Object command) throws java.io.IOException
marshal in interface WireFormatjava.io.IOExceptionpublic java.lang.Object unmarshal(ByteSequence packet) throws java.io.IOException
unmarshal in interface WireFormatjava.io.IOExceptionpublic void marshal(java.lang.Object command,
java.io.DataOutput os)
throws java.io.IOException
marshal in interface WireFormatjava.io.IOExceptionpublic java.lang.Object unmarshal(java.io.DataInput in)
throws java.io.IOException
unmarshal in interface WireFormatjava.io.IOExceptionprotected java.lang.String parseAction(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionprotected java.util.HashMap<java.lang.String,java.lang.String> parseHeaders(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionprotected int parseContentLength(java.lang.String contentLength)
throws ProtocolException
ProtocolExceptionpublic int getVersion()
getVersion in interface WireFormatpublic void setVersion(int version)
setVersion in interface WireFormatpublic java.lang.String getStompVersion()
public void setStompVersion(java.lang.String stompVersion)
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.