org.jivesoftware.smackx.bytestreams.ibb
Class IBBPacketUtils

java.lang.Object
  extended by org.jivesoftware.smackx.bytestreams.ibb.IBBPacketUtils

public class IBBPacketUtils
extends java.lang.Object

Utility methods to create packets.

Author:
Henning Staib

Constructor Summary
IBBPacketUtils()
           
 
Method Summary
static IQ createErrorIQ(java.lang.String from, java.lang.String to, XMPPError xmppError)
          Returns an error IQ.
static IQ createResultIQ(java.lang.String from, java.lang.String to)
          Returns a result IQ.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IBBPacketUtils

public IBBPacketUtils()
Method Detail

createErrorIQ

public static IQ createErrorIQ(java.lang.String from,
                               java.lang.String to,
                               XMPPError xmppError)
Returns an error IQ.

Parameters:
from - the senders JID
to - the recipients JID
xmppError - the XMPP error
Returns:
an error IQ

createResultIQ

public static IQ createResultIQ(java.lang.String from,
                                java.lang.String to)
Returns a result IQ.

Parameters:
from - the senders JID
to - the recipients JID
Returns:
a result IQ