Smack

org.jivesoftware.smack.sasl
Class SASLMechanism.Failure

java.lang.Object
  extended by org.jivesoftware.smack.packet.Packet
      extended by org.jivesoftware.smack.sasl.SASLMechanism.Failure
Enclosing class:
SASLMechanism

public static class SASLMechanism.Failure
extends Packet

A SASL failure stanza.


Field Summary
 
Fields inherited from class org.jivesoftware.smack.packet.Packet
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
 
Constructor Summary
SASLMechanism.Failure(java.lang.String condition)
           
 
Method Summary
 java.lang.String getCondition()
          Get the SASL related error condition.
 java.lang.String toXML()
          Returns the packet as XML.
 
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, addExtensions, deleteProperty, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SASLMechanism.Failure

public SASLMechanism.Failure(java.lang.String condition)
Method Detail

getCondition

public java.lang.String getCondition()
Get the SASL related error condition.

Returns:
the SASL related error condition.

toXML

public java.lang.String toXML()
Description copied from class: Packet
Returns the packet as XML. Every concrete extension of Packet must implement this method. In addition to writing out packet-specific data, every sub-class should also write out the error and the extensions data if they are defined.

Specified by:
toXML in class Packet
Returns:
the XML format of the packet as a String.

Smack

Copyright © 2003-2007 Jive Software.