public class XMPPUtils extends Object
| Constructor and Description |
|---|
XMPPUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.xmpp.packet.IQ |
createErrorResponse(org.xmpp.packet.IQ request,
String message,
org.xmpp.packet.PacketError.Condition condition,
org.xmpp.packet.PacketError.Type type)
Creates an error response for a given IQ request.
|
static org.xmpp.packet.IQ |
error(org.xmpp.packet.IQ iq,
String errorMessage)
Logs the error and returns an IQ error response
|
static org.xmpp.packet.IQ |
error(org.xmpp.packet.IQ iq,
String errorMessage,
Exception e,
org.apache.log4j.Logger logger) |
static org.xmpp.packet.IQ |
error(org.xmpp.packet.IQ iq,
String errorMessage,
org.apache.log4j.Logger logger)
Logs the error and returns an IQ error response
|
static org.xmpp.packet.IQ |
errorRSM(org.xmpp.packet.IQ iq,
org.apache.log4j.Logger logger)
Logs the RSM page not found error and returns an IQ error response
|
public static org.xmpp.packet.IQ error(org.xmpp.packet.IQ iq,
String errorMessage,
org.apache.log4j.Logger logger)
iq - errorMessage - logger - public static org.xmpp.packet.IQ error(org.xmpp.packet.IQ iq,
String errorMessage)
iq - errorMessage - logger - public static org.xmpp.packet.IQ error(org.xmpp.packet.IQ iq,
String errorMessage,
Exception e,
org.apache.log4j.Logger logger)
iq - errorMessage - logger - public static org.xmpp.packet.IQ errorRSM(org.xmpp.packet.IQ iq,
org.apache.log4j.Logger logger)
iq - errorMessage - logger - public static org.xmpp.packet.IQ createErrorResponse(org.xmpp.packet.IQ request,
String message,
org.xmpp.packet.PacketError.Condition condition,
org.xmpp.packet.PacketError.Type type)
request - message - condition - type - Copyright © 2014. All Rights Reserved.