org.apache.activemq.transport.stomp
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
WireFormat
marshal
in interface WireFormat
java.io.IOException
public java.lang.Object unmarshal(ByteSequence packet) throws java.io.IOException
WireFormat
unmarshal
in interface WireFormat
java.io.IOException
public void marshal(java.lang.Object command, java.io.DataOutput os) throws java.io.IOException
WireFormat
marshal
in interface WireFormat
java.io.IOException
public java.lang.Object unmarshal(java.io.DataInput in) throws java.io.IOException
WireFormat
unmarshal
in interface WireFormat
java.io.IOException
protected java.lang.String parseAction(java.io.DataInput in) throws java.io.IOException
java.io.IOException
protected java.util.HashMap<java.lang.String,java.lang.String> parseHeaders(java.io.DataInput in) throws java.io.IOException
java.io.IOException
protected int parseContentLength(java.lang.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.