edu.wisc.my.webproxy.beans.filtering
Class ChainingSaxFilter

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by edu.wisc.my.webproxy.beans.filtering.ChainingSaxFilter
All Implemented Interfaces:
ProxyComponent, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.ext.LexicalHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader
Direct Known Subclasses:
BaseUrlFilter, ClippingFilter, HtmlOutputFilter

public abstract class ChainingSaxFilter
extends org.xml.sax.helpers.XMLFilterImpl
implements ProxyComponent, org.xml.sax.ext.LexicalHandler

This abstract class can be implemented by filters that can use SAX events to perform their action.

Version:
$Id: ChainingSaxFilter.java 12215 2006-11-15 22:55:32Z edalquist $
Author:
dgrimwood

Constructor Summary
ChainingSaxFilter()
          The default constructor
ChainingSaxFilter(org.xml.sax.XMLReader parent)
          Constructor that takes XMLReader object as argument
 
Method Summary
 void characters(char[] arg0, int arg1, int arg2)
           
 void clearData()
          Called at the end of a request that the component was used in.
 void comment(char[] ch, int start, int length)
           
 void endCDATA()
           
 void endDTD()
           
 void endEntity(java.lang.String name)
           
 org.xml.sax.ext.LexicalHandler getLexicalHandler()
           
 void parse(org.xml.sax.InputSource input)
           
 void parse(java.lang.String systemId)
           
 void setActionData(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
          This method is called on a component that is being used by the portlet at the begining of the action request it will be used in.
 void setLexicalHandler(org.xml.sax.ext.LexicalHandler lexHandler)
           
 void setParent(org.xml.sax.XMLReader parent)
           
 void setRenderData(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
          This method is called on a component that is being used by the portlet at the begining of the render request it will be used in.
 void startCDATA()
           
 void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
           
 void startEntity(java.lang.String name)
           
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.wisc.my.webproxy.beans.config.ProxyComponent
getName
 

Constructor Detail

ChainingSaxFilter

public ChainingSaxFilter()
The default constructor


ChainingSaxFilter

public ChainingSaxFilter(org.xml.sax.XMLReader parent)
Constructor that takes XMLReader object as argument

Parameters:
parent - the (@link XMLReader) object
Method Detail

characters

public void characters(char[] arg0,
                       int arg1,
                       int arg2)
                throws org.xml.sax.SAXException
Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.XMLFilterImpl
Throws:
org.xml.sax.SAXException
See Also:
XMLFilterImpl.characters(char[], int, int)

getLexicalHandler

public org.xml.sax.ext.LexicalHandler getLexicalHandler()
Returns:
Returns the lexHandler.

setLexicalHandler

public void setLexicalHandler(org.xml.sax.ext.LexicalHandler lexHandler)
Parameters:
lexHandler - The lexHandler to set.

setActionData

public void setActionData(javax.portlet.ActionRequest request,
                          javax.portlet.ActionResponse response)
Description copied from interface: ProxyComponent
This method is called on a component that is being used by the portlet at the begining of the action request it will be used in. It provides the component with a reference to the request and response objects to use.

Specified by:
setActionData in interface ProxyComponent

setRenderData

public void setRenderData(javax.portlet.RenderRequest request,
                          javax.portlet.RenderResponse response)
Description copied from interface: ProxyComponent
This method is called on a component that is being used by the portlet at the begining of the render request it will be used in. It provides the component with a reference to the request and response objects to use.

Specified by:
setRenderData in interface ProxyComponent

clearData

public void clearData()
Description copied from interface: ProxyComponent
Called at the end of a request that the component was used in. It clears the references to the request and response objects. It should be called from a finally block to ensure its execution.

Specified by:
clearData in interface ProxyComponent

setParent

public void setParent(org.xml.sax.XMLReader parent)
Specified by:
setParent in interface org.xml.sax.XMLFilter
Overrides:
setParent in class org.xml.sax.helpers.XMLFilterImpl
See Also:
XMLFilter.setParent(org.xml.sax.XMLReader)

parse

public void parse(org.xml.sax.InputSource input)
           throws org.xml.sax.SAXException,
                  java.io.IOException
Specified by:
parse in interface org.xml.sax.XMLReader
Overrides:
parse in class org.xml.sax.helpers.XMLFilterImpl
Throws:
org.xml.sax.SAXException
java.io.IOException
See Also:
XMLReader.parse(org.xml.sax.InputSource)

parse

public void parse(java.lang.String systemId)
           throws org.xml.sax.SAXException,
                  java.io.IOException
Specified by:
parse in interface org.xml.sax.XMLReader
Overrides:
parse in class org.xml.sax.helpers.XMLFilterImpl
Throws:
org.xml.sax.SAXException
java.io.IOException
See Also:
XMLReader.parse(java.lang.String)

comment

public void comment(char[] ch,
                    int start,
                    int length)
             throws org.xml.sax.SAXException
Specified by:
comment in interface org.xml.sax.ext.LexicalHandler
Throws:
org.xml.sax.SAXException
See Also:
LexicalHandler.comment(char[], int, int)

endCDATA

public void endCDATA()
              throws org.xml.sax.SAXException
Specified by:
endCDATA in interface org.xml.sax.ext.LexicalHandler
Throws:
org.xml.sax.SAXException
See Also:
LexicalHandler.endCDATA()

endDTD

public void endDTD()
            throws org.xml.sax.SAXException
Specified by:
endDTD in interface org.xml.sax.ext.LexicalHandler
Throws:
org.xml.sax.SAXException
See Also:
LexicalHandler.endDTD()

startCDATA

public void startCDATA()
                throws org.xml.sax.SAXException
Specified by:
startCDATA in interface org.xml.sax.ext.LexicalHandler
Throws:
org.xml.sax.SAXException
See Also:
LexicalHandler.startCDATA()

endEntity

public void endEntity(java.lang.String name)
               throws org.xml.sax.SAXException
Specified by:
endEntity in interface org.xml.sax.ext.LexicalHandler
Throws:
org.xml.sax.SAXException
See Also:
LexicalHandler.endEntity(java.lang.String)

startEntity

public void startEntity(java.lang.String name)
                 throws org.xml.sax.SAXException
Specified by:
startEntity in interface org.xml.sax.ext.LexicalHandler
Throws:
org.xml.sax.SAXException
See Also:
LexicalHandler.startEntity(java.lang.String)

startDTD

public void startDTD(java.lang.String name,
                     java.lang.String publicId,
                     java.lang.String systemId)
              throws org.xml.sax.SAXException
Specified by:
startDTD in interface org.xml.sax.ext.LexicalHandler
Throws:
org.xml.sax.SAXException
See Also:
LexicalHandler.startDTD(java.lang.String, java.lang.String, java.lang.String)


Copyright © 2010 Jasig. All Rights Reserved.