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
WireFormat
marshal
in interface WireFormat
IOException
public Object unmarshal(ByteSequence packet) throws IOException
WireFormat
unmarshal
in interface WireFormat
IOException
public void marshal(Object command, DataOutput os) throws IOException
WireFormat
marshal
in interface WireFormat
IOException
public Object unmarshal(DataInput in) throws IOException
WireFormat
unmarshal
in interface WireFormat
IOException
protected String parseAction(DataInput in) throws IOException
IOException
protected HashMap<String,String> parseHeaders(DataInput in) throws IOException
IOException
protected int parseContentLength(String contentLength) throws ProtocolException
ProtocolException
public int getVersion()
getVersion
in interface WireFormat
public void setVersion(int version)
setVersion
in interface WireFormat
public boolean isEncodingEnabled()
public void setEncodingEnabled(boolean value)
Copyright © 2005–2014. All rights reserved.