org.apache.activemq.transport.xmpp
Class XmppWireFormat

java.lang.Object
  extended by org.apache.activemq.transport.xmpp.XmppWireFormat
All Implemented Interfaces:
WireFormat

public class XmppWireFormat
extends Object
implements WireFormat

A wire format which uses XMPP format of messages


Constructor Summary
XmppWireFormat()
           
 
Method Summary
 WireFormat copy()
           
 int getVersion()
           
 boolean inReceive()
           
 ByteSequence marshal(Object command)
          Packet based marshaling
 void marshal(Object object, DataOutput dataOutput)
          Stream based marshaling
 void setVersion(int version)
           
 Object unmarshal(ByteSequence packet)
          Packet based un-marshaling
 Object unmarshal(DataInput dataInput)
          Packet based un-marshaling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmppWireFormat

public XmppWireFormat()
Method Detail

copy

public WireFormat copy()

marshal

public ByteSequence marshal(Object command)
                     throws IOException
Description copied from interface: WireFormat
Packet based marshaling

Specified by:
marshal in interface WireFormat
Throws:
IOException

unmarshal

public Object unmarshal(ByteSequence packet)
                 throws IOException
Description copied from interface: WireFormat
Packet based un-marshaling

Specified by:
unmarshal in interface WireFormat
Throws:
IOException

marshal

public void marshal(Object object,
                    DataOutput dataOutput)
             throws IOException
Description copied from interface: WireFormat
Stream based marshaling

Specified by:
marshal in interface WireFormat
Throws:
IOException

unmarshal

public Object unmarshal(DataInput dataInput)
                 throws IOException
Description copied from interface: WireFormat
Packet based un-marshaling

Specified by:
unmarshal in interface WireFormat
Throws:
IOException

getVersion

public int getVersion()
Specified by:
getVersion in interface WireFormat
Returns:
the version of the wire format

setVersion

public void setVersion(int version)
Specified by:
setVersion in interface WireFormat

inReceive

public boolean inReceive()


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.