org.jabber.jabberbeans.sax.serverside
Class HandshakeHandler

java.lang.Object
  |
  +--org.jabber.jabberbeans.sax.SubHandler
        |
        +--org.jabber.jabberbeans.sax.serverside.HandshakeHandler
All Implemented Interfaces:
DocumentHandler

public class HandshakeHandler
extends SubHandler

HandshakeHandler is responsible for the generation of Handshake objects from the server stream.


Field Summary
protected  java.lang.StringBuffer elementChars
          stringbuffer for catching the handshake contents.
 
Constructor Summary
HandshakeHandler()
          Creates a new HandshakeHandler instance.
 
Method Summary
 void characters(char[] ch, int start, int length)
          This is an exact copy of the characters function in the main handler
protected  void startHandler(java.lang.String name, AttributeList attributes)
          Gets called when the underlying engine decides to pass an entity and all sub-entities off to your subhandler.
protected  java.lang.Object stopHandler(java.lang.String name)
          Stophandler is the same as end element, except that it is called saying that the subhandler is no longer in scope.
 
Methods inherited from class org.jabber.jabberbeans.sax.SubHandler
endDocument, endElement, getHandlerFactory, getSubCount, graftParent, graftSubHandler, handleEndElement, handleStartElement, ignorableWhitespace, processingInstruction, receiveChildData, setChildSubHandler, setDocumentLocator, setHandlerFactory, setParent, setParser, startDocument, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementChars

protected java.lang.StringBuffer elementChars
stringbuffer for catching the handshake contents.

Constructor Detail

HandshakeHandler

public HandshakeHandler()
Creates a new HandshakeHandler instance.

Method Detail

startHandler

protected final void startHandler(java.lang.String name,
                                  AttributeList attributes)
                           throws SAXException
Description copied from class: SubHandler
Gets called when the underlying engine decides to pass an entity and all sub-entities off to your subhandler.

Upon seeing the element that this subhandler handles, we call this constructor, passing in the attributes.

Overrides:
startHandler in class SubHandler
Parameters:
name - name of the element which we are handling.
attributes - list of attributes on this element
SAXException

stopHandler

protected final java.lang.Object stopHandler(java.lang.String name)
Description copied from class: SubHandler
Stophandler is the same as end element, except that it is called saying that the subhandler is no longer in scope.

Overrides:
stopHandler in class SubHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Description copied from class: SubHandler
This is an exact copy of the characters function in the main handler

Specified by:
characters in interface DocumentHandler
Overrides:
characters in class SubHandler
Parameters:
ch - character string detected
start - start position
length - length of string
Throws:
SAXException - thrown on error