public class StompWireFormat extends java.lang.Object implements WireFormat
| Constructor and Description |
|---|
StompWireFormat() |
| Modifier and Type | Method and Description |
|---|---|
int |
getVersion() |
boolean |
isEncodingEnabled() |
ByteSequence |
marshal(java.lang.Object command)
Packet based marshaling
|
void |
marshal(java.lang.Object command,
java.io.DataOutput os)
Stream based marshaling
|
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 |
setEncodingEnabled(boolean value) |
void |
setVersion(int version) |
java.lang.Object |
unmarshal(ByteSequence packet)
Packet based un-marshaling
|
java.lang.Object |
unmarshal(java.io.DataInput in)
Packet based un-marshaling
|
public StompWireFormat()
public ByteSequence marshal(java.lang.Object command) throws java.io.IOException
WireFormatmarshal in interface WireFormatjava.io.IOExceptionpublic java.lang.Object unmarshal(ByteSequence packet) throws java.io.IOException
WireFormatunmarshal in interface WireFormatjava.io.IOExceptionpublic void marshal(java.lang.Object command, java.io.DataOutput os) throws java.io.IOException
WireFormatmarshal in interface WireFormatjava.io.IOExceptionpublic java.lang.Object unmarshal(java.io.DataInput in) throws java.io.IOException
WireFormatunmarshal 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 boolean isEncodingEnabled()
public void setEncodingEnabled(boolean value)
Copyright © 2005-2012. All Rights Reserved.