|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.transport.stomp.StompWireFormat
public class StompWireFormat
Implements marshalling and unmarsalling the Stomp protocol.
| Constructor Summary | |
|---|---|
StompWireFormat()
|
|
| Method Summary | |
|---|---|
String |
getStompVersion()
|
int |
getVersion()
|
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 |
setStompVersion(String stompVersion)
|
void |
setVersion(int version)
|
Object |
unmarshal(ByteSequence packet)
Packet based un-marshaling |
Object |
unmarshal(DataInput in)
Packet based un-marshaling |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StompWireFormat()
| Method Detail |
|---|
public ByteSequence marshal(Object command)
throws IOException
WireFormat
marshal in interface WireFormatIOException
public Object unmarshal(ByteSequence packet)
throws IOException
WireFormat
unmarshal in interface WireFormatIOException
public void marshal(Object command,
DataOutput os)
throws IOException
WireFormat
marshal in interface WireFormatIOException
public Object unmarshal(DataInput in)
throws IOException
WireFormat
unmarshal in interface WireFormatIOException
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
ProtocolExceptionpublic int getVersion()
getVersion in interface WireFormatpublic void setVersion(int version)
setVersion in interface WireFormatpublic String getStompVersion()
public void setStompVersion(String stompVersion)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||