se.kmr.scam.client.chain
Class CommandChainParser

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byse.kmr.scam.client.chain.CommandChainParser
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class CommandChainParser
extends DefaultHandler

Parser for CommandChain configurations.

Version:
$Revision: 1.13 $
Author:
Jöran
Created:
den 26 juli 2002

Constructor Summary
CommandChainParser()
           
 
Method Summary
 void endElement(String namespaceURI, String localName, String qName)
          Handles the ending of an element
 Map getActionsMapping()
          Deprecated.  
 CommandChainConfiguration getConfiguration()
          Gets current configuration.
 void parse(InputStream is)
          Parse the CommandChain definitions from a stream
 void parse(String filename)
          Parse the given XML-file.
 void startElement(String namespaceURI, String localName, String qName, Attributes atts)
          Handles the start of an element
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandChainParser

public CommandChainParser()
Method Detail

parse

public void parse(String filename)
           throws HttpException
Parse the given XML-file.

Parameters:
filename -
Throws:
HttpException - thrown in case of exception while parsing the configuration

parse

public void parse(InputStream is)
           throws HttpException
Parse the CommandChain definitions from a stream

Parameters:
is - Parse this stream
Throws:
HttpException - thrown in case of exception while parsing the configuration

getConfiguration

public CommandChainConfiguration getConfiguration()
Gets current configuration.

Returns:
current configuration

getActionsMapping

public Map getActionsMapping()
Deprecated.  

Gets the actionsMapping attribute of the CommandChainParser object

Returns:
The actionsMapping value

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Handles the start of an element

Parameters:
namespaceURI - The namespace of the element
localName - The local name of the element
qName - The element name
atts - Attributes defined in the element
Throws:
SAXException - Thrown in case of an exception in processing the start of an element.

endElement

public void endElement(String namespaceURI,
                       String localName,
                       String qName)
                throws SAXException
Handles the ending of an element

Parameters:
namespaceURI - The namespace of the element
localName - The local name of the element
qName - The element name
Throws:
SAXException - thrown in case of missmatch in configuration


Copyright © 2003 SCAM. All Rights Reserved.