de.knup.jedi.jayshare.Fileshare
Class FileshareHandler

java.lang.Object
  |
  +--org.jabber.jabberbeans.sax.SubHandler
        |
        +--de.knup.jedi.jayshare.Fileshare.FileshareHandler

public class FileshareHandler
extends SubHandler


Field Summary
protected  FileshareBuilder builder
           
static int CHANGE_INFO
           
protected  FileshareComponentHandler handler
           
protected  java.lang.String hashedID
           
protected  int infoType
           
static int LIST_REPLY
           
static int LIST_REQUEST
           
static int MESSAGE_REPLY
           
static int MESSAGE_REQUEST
           
static int SERVICE_REPLY
           
static int SERVICE_REQUEST
           
 
Fields inherited from class org.jabber.jabberbeans.sax.SubHandler
handlerFactory, parent, parser, subCount
 
Constructor Summary
FileshareHandler()
           
 
Method Summary
protected  void handleEndElement(java.lang.String name)
          handleEndElement is overloaded by the new class to provide logic to handle element code.
protected  void handleStartElement(java.lang.String name, AttributeList attributes)
          handleStartElement is overloaded by the new class to provide logic to handle the element code.
protected  void receiveChildData(SubHandler subHandler, java.lang.Object o)
          receiveChildData is called when a child handler exits, returning control to this code.
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
characters, endDocument, endElement, getHandlerFactory, getSubCount, graftParent, graftSubHandler, ignorableWhitespace, processingInstruction, setChildSubHandler, setDocumentLocator, setHandlerFactory, setParent, setParser, startDocument, startElement
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

CHANGE_INFO

public static final int CHANGE_INFO

LIST_REQUEST

public static final int LIST_REQUEST

LIST_REPLY

public static final int LIST_REPLY

SERVICE_REQUEST

public static final int SERVICE_REQUEST

SERVICE_REPLY

public static final int SERVICE_REPLY

MESSAGE_REPLY

public static final int MESSAGE_REPLY

MESSAGE_REQUEST

public static final int MESSAGE_REQUEST

infoType

protected int infoType

builder

protected FileshareBuilder builder

handler

protected FileshareComponentHandler handler

hashedID

protected java.lang.String hashedID
Constructor Detail

FileshareHandler

public FileshareHandler()
Method Detail

startHandler

protected 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
Tags copied from class: SubHandler
Parameters:
name - name of the element which we are handling.
attributes - list of attributes on this element

handleStartElement

protected void handleStartElement(java.lang.String name,
                                  AttributeList attributes)
                           throws SAXException
Description copied from class: SubHandler
handleStartElement is overloaded by the new class to provide logic to handle the element code.
Overrides:
handleStartElement in class SubHandler
Tags copied from class: SubHandler
Parameters:
name - a String value
attributes - an AttributeList value
Throws:
SAXException - if an error occurs

handleEndElement

protected void handleEndElement(java.lang.String name)
                         throws SAXException
Description copied from class: SubHandler
handleEndElement is overloaded by the new class to provide logic to handle element code.
Overrides:
handleEndElement in class SubHandler
Tags copied from class: SubHandler
Parameters:
name - a String value
Throws:
SAXException - if an error occurs

stopHandler

protected java.lang.Object stopHandler(java.lang.String name)
                                throws SAXException
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
Tags copied from class: SubHandler
Parameters:
Object - a value being returned to the parent - the parent is meant to interpret this result.

receiveChildData

protected void receiveChildData(SubHandler subHandler,
                                java.lang.Object o)
Description copied from class: SubHandler
receiveChildData is called when a child handler exits, returning control to this code. The now-defunct handler along with the data object are both returned.
Overrides:
receiveChildData in class SubHandler
Tags copied from class: SubHandler
Parameters:
subHandler - a SubHandler value
o - an Object value
Throws:
SAXException - if there is an error in the returned data