|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.activemq.message.WireFormat
org.codehaus.activemq.transport.jabber.JabberWireFormat
A wire format which uses XMPP format of messages
Constructor Summary | |
JabberWireFormat()
|
Method Summary | |
WireFormat |
copy()
Creates a new copy of this wire format so it can be used in another thread/context |
protected java.lang.String |
encodeBinary(byte[] data)
|
protected java.lang.String |
getXmppType(ActiveMQMessage message)
|
Packet |
readPacket(java.io.DataInput in)
Reads a packet from the given input stream |
Packet |
readPacket(int firstByte,
java.io.DataInput in)
A helper method for working with sockets where the first byte is read first, then the rest of the message is read. |
protected void |
writeBytesMessage(ActiveMQBytesMessage message,
java.io.DataOutput out)
|
protected void |
writeMessage(ActiveMQMessage message,
java.lang.String body,
java.io.DataOutput out)
|
protected void |
writeObjectMessage(ActiveMQObjectMessage message,
java.io.DataOutput out)
|
void |
writePacket(Packet packet,
java.io.DataOutput out)
Writes the packet to the given output stream |
protected void |
writeTextMessage(ActiveMQTextMessage message,
java.io.DataOutput out)
|
Methods inherited from class org.codehaus.activemq.message.WireFormat |
fromBytes, fromBytes, readPacket, toBytes, writePacket |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JabberWireFormat()
Method Detail |
public WireFormat copy()
WireFormat
copy
in class WireFormat
public Packet readPacket(java.io.DataInput in) throws java.io.IOException
WireFormat
readPacket
in class WireFormat
in
-
java.io.IOException
public Packet readPacket(int firstByte, java.io.DataInput in) throws java.io.IOException
WireFormat
readPacket
in class WireFormat
firstByte
- the first byte of the packetin
- the rest of the packet
java.io.IOException
public void writePacket(Packet packet, java.io.DataOutput out) throws java.io.IOException, JMSException
WireFormat
writePacket
in class WireFormat
packet
- out
-
java.io.IOException
JMSException
protected void writeObjectMessage(ActiveMQObjectMessage message, java.io.DataOutput out) throws JMSException, java.io.IOException
JMSException
java.io.IOException
protected void writeTextMessage(ActiveMQTextMessage message, java.io.DataOutput out) throws JMSException, java.io.IOException
JMSException
java.io.IOException
protected void writeBytesMessage(ActiveMQBytesMessage message, java.io.DataOutput out) throws java.io.IOException
java.io.IOException
protected void writeMessage(ActiveMQMessage message, java.lang.String body, java.io.DataOutput out) throws java.io.IOException
java.io.IOException
protected java.lang.String encodeBinary(byte[] data)
protected java.lang.String getXmppType(ActiveMQMessage message)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |