Class XStreamWireFormat
java.lang.Object
org.apache.activemq.transport.util.TextWireFormat
org.apache.activemq.transport.xstream.XStreamWireFormat
- All Implemented Interfaces:
org.apache.activemq.wireformat.WireFormat
A
WireFormat implementation which uses the <a
href="http://xstream.codehaus.org/>XStream library to marshall commands
onto the wire-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanProcessWireFormatVersion(int version) Can this wireformat process packets of this versionorg.apache.activemq.wireformat.WireFormatcopy()protected com.thoughtworks.xstream.XStreamintintcom.thoughtworks.xstream.XStreammarshalText(Object command) voidsetVersion(int version) voidsetXStream(com.thoughtworks.xstream.XStream xStream) unmarshalText(Reader reader) unmarshalText(String text)
-
Constructor Details
-
XStreamWireFormat
public XStreamWireFormat()
-
-
Method Details
-
getVersion
public int getVersion() -
setVersion
public void setVersion(int version) -
copy
public org.apache.activemq.wireformat.WireFormat copy() -
unmarshalText
- Specified by:
unmarshalTextin classTextWireFormat
-
unmarshalText
- Specified by:
unmarshalTextin classTextWireFormat
-
marshalText
- Specified by:
marshalTextin classTextWireFormat- Throws:
IOException
-
canProcessWireFormatVersion
public boolean canProcessWireFormatVersion(int version) Can this wireformat process packets of this version- Parameters:
version- the version number to test- Returns:
- true if can accept the version
-
getCurrentWireFormatVersion
public int getCurrentWireFormatVersion()- Returns:
- the current version of this wire format
-
getXStream
public com.thoughtworks.xstream.XStream getXStream() -
setXStream
public void setXStream(com.thoughtworks.xstream.XStream xStream) -
createXStream
protected com.thoughtworks.xstream.XStream createXStream()
-