org.apache.vysper.xmpp.modules.core.base.handler
Class IQHandler

java.lang.Object
  extended by org.apache.vysper.xmpp.modules.core.base.handler.XMPPCoreStanzaHandler
      extended by org.apache.vysper.xmpp.modules.core.base.handler.IQHandler
All Implemented Interfaces:
StanzaHandler
Direct Known Subclasses:
AbstractAsyncIQGetHandler, AuthCompatibilityIQHandler, DefaultIQHandler, SessionIQHandler

public class IQHandler
extends XMPPCoreStanzaHandler

handling IQ stanzas (request/response)

See Also:
for your convenient own IQ handler implementations, for handling IQ gets asynchronously

Constructor Summary
IQHandler()
           
 
Method Summary
protected  Stanza executeCore(XMPPCoreStanza coreStanza, ServerRuntimeContext serverRuntimeContext, boolean isOutboundStanza, SessionContext sessionContext)
           
protected  Stanza executeIQLogic(IQStanza stanza, ServerRuntimeContext serverRuntimeContext, SessionContext sessionContext)
          must be overriden by specialized IQ handlers
protected  java.lang.String getErrorLanguage(ServerRuntimeContext serverRuntimeContext, SessionContext sessionContext)
           
 java.lang.String getName()
          the stanza name handled by this handler
protected  boolean verifyInnerNamespace(Stanza stanza, java.lang.String namespace)
           
protected  boolean verifyType(Stanza stanza)
           
 
Methods inherited from class org.apache.vysper.xmpp.modules.core.base.handler.XMPPCoreStanzaHandler
determineFrom, execute, isSessionRequired, verify, verifyNamespace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IQHandler

public IQHandler()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: StanzaHandler
the stanza name handled by this handler


verifyType

protected boolean verifyType(Stanza stanza)
Specified by:
verifyType in class XMPPCoreStanzaHandler

verifyInnerNamespace

protected boolean verifyInnerNamespace(Stanza stanza,
                                       java.lang.String namespace)

executeCore

@SpecCompliance(compliant={@SpecCompliant(spec="rfc3920",section="9.2.3",status=FINISHED,coverage=PARTIAL,comment="covers points 1, 2, 5 and 6"),@SpecCompliant(spec="rfc3920bis-09",section="9.2.3",status=FINISHED,coverage=PARTIAL,comment="covers points 1, 2, 5 and 6")})
protected Stanza executeCore(XMPPCoreStanza coreStanza,
                                                                                                                                                                               ServerRuntimeContext serverRuntimeContext,
                                                                                                                                                                               boolean isOutboundStanza,
                                                                                                                                                                               SessionContext sessionContext)
Specified by:
executeCore in class XMPPCoreStanzaHandler

getErrorLanguage

protected java.lang.String getErrorLanguage(ServerRuntimeContext serverRuntimeContext,
                                            SessionContext sessionContext)

executeIQLogic

protected Stanza executeIQLogic(IQStanza stanza,
                                ServerRuntimeContext serverRuntimeContext,
                                SessionContext sessionContext)
must be overriden by specialized IQ handlers