public class StompWireFormat extends Object implements WireFormat
| Constructor and Description |
|---|
StompWireFormat() |
| Modifier and Type | Method and Description |
|---|---|
int |
getVersion() |
boolean |
isEncodingEnabled() |
ByteSequence |
marshal(Object command)
Packet based marshaling
|
void |
marshal(Object command,
DataOutput os)
Stream based marshaling
|
protected String |
parseAction(DataInput in) |
protected int |
parseContentLength(String contentLength) |
protected HashMap<String,String> |
parseHeaders(DataInput in) |
void |
setEncodingEnabled(boolean value) |
void |
setVersion(int version) |
Object |
unmarshal(ByteSequence packet)
Packet based un-marshaling
|
Object |
unmarshal(DataInput in)
Packet based un-marshaling
|
public StompWireFormat()
public ByteSequence marshal(Object command) throws IOException
WireFormatmarshal in interface WireFormatIOExceptionpublic Object unmarshal(ByteSequence packet) throws IOException
WireFormatunmarshal in interface WireFormatIOExceptionpublic void marshal(Object command, DataOutput os) throws IOException
WireFormatmarshal in interface WireFormatIOExceptionpublic Object unmarshal(DataInput in) throws IOException
WireFormatunmarshal in interface 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 WireFormatpublic void setVersion(int version)
setVersion in interface WireFormatpublic boolean isEncodingEnabled()
public void setEncodingEnabled(boolean value)
Copyright © 2005–2017. All rights reserved.