org.milyn.delivery
Class AbstractParser

java.lang.Object
  extended by org.milyn.delivery.AbstractParser
Direct Known Subclasses:
DOMParser, SAXParser

public class AbstractParser
extends Object

Abstract Parser.

Author:
tom.fennelly@gmail.com

Constructor Summary
AbstractParser(ExecutionContext execContext)
           
AbstractParser(ExecutionContext execContext, SmooksResourceConfiguration saxDriverConfig)
          Public constructor.
 
Method Summary
protected  XMLReader createXMLReader(DefaultHandler2 handler)
           
protected  ExecutionContext getExecContext()
           
protected  SmooksResourceConfiguration getSaxDriverConfig()
           
static SmooksResourceConfiguration getSAXParserConfiguration(ContentDeliveryConfig deliveryConfig)
          Get the SAX Parser configuration for the profile associated with the supplied delivery configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractParser

public AbstractParser(ExecutionContext execContext,
                      SmooksResourceConfiguration saxDriverConfig)
Public constructor.

Parameters:
execContext - The Smooks Container Request that the parser is being instantiated on behalf of.
saxDriverConfig - SAX Parser configuration. See .cdrl Configuration.

AbstractParser

public AbstractParser(ExecutionContext execContext)
Method Detail

getExecContext

protected ExecutionContext getExecContext()

getSaxDriverConfig

protected SmooksResourceConfiguration getSaxDriverConfig()

getSAXParserConfiguration

public static SmooksResourceConfiguration getSAXParserConfiguration(ContentDeliveryConfig deliveryConfig)
Get the SAX Parser configuration for the profile associated with the supplied delivery configuration.

Parameters:
deliveryConfig - Content delivery configuration.
Returns:
Returns the SAX Parser configuration for the profile associated with the supplied delivery configuration, or null if no parser configuration is specified.

createXMLReader

protected XMLReader createXMLReader(DefaultHandler2 handler)
                             throws SAXException
Throws:
SAXException


Copyright © 2008. All Rights Reserved.