org.apache.jetspeed.rewriter.html.neko
Class URLRewriterFilter

java.lang.Object
  extended by org.cyberneko.html.filters.DefaultFilter
      extended by org.apache.jetspeed.rewriter.html.neko.URLRewriterFilter
All Implemented Interfaces:
org.apache.xerces.xni.parser.XMLComponent, org.apache.xerces.xni.parser.XMLDocumentFilter, org.apache.xerces.xni.parser.XMLDocumentSource, org.apache.xerces.xni.XMLDocumentHandler, org.cyberneko.html.HTMLComponent

public class URLRewriterFilter
extends org.cyberneko.html.filters.DefaultFilter

URLRewriterFilter

Version:
$Id: URLRewriterFilter.java 517121 2007-03-12 07:45:49Z ate $
Author:
Scott T. Weaver

Field Summary
private  Rewriter rewriter
           
 
Fields inherited from class org.cyberneko.html.filters.DefaultFilter
fDocumentHandler, fDocumentSource
 
Constructor Summary
URLRewriterFilter(Rewriter rewriter)
           
 
Method Summary
 void characters(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations arg1)
           characters
 void comment(org.apache.xerces.xni.XMLString comment, org.apache.xerces.xni.Augmentations augs)
           comment
protected  void doRewrite(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attrs)
           doRewrite
 void emptyElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attrs, org.apache.xerces.xni.Augmentations arg2)
           emptyElement
 void endElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.Augmentations augs)
           endElement
protected  void rewriteAttribute(String attrName, org.apache.xerces.xni.XMLAttributes attributes)
           
 void startElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attrs, org.apache.xerces.xni.Augmentations augs)
           startElement
 
Methods inherited from class org.cyberneko.html.filters.DefaultFilter
doctypeDecl, endCDATA, endDocument, endGeneralEntity, endPrefixMapping, getDocumentHandler, getDocumentSource, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, ignorableWhitespace, merge, processingInstruction, reset, setDocumentHandler, setDocumentSource, setFeature, setProperty, startCDATA, startDocument, startDocument, startGeneralEntity, startPrefixMapping, textDecl, xmlDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rewriter

private Rewriter rewriter
Constructor Detail

URLRewriterFilter

public URLRewriterFilter(Rewriter rewriter)
Method Detail

startElement

public void startElement(org.apache.xerces.xni.QName element,
                         org.apache.xerces.xni.XMLAttributes attrs,
                         org.apache.xerces.xni.Augmentations augs)
                  throws org.apache.xerces.xni.XNIException

startElement

Specified by:
startElement in interface org.apache.xerces.xni.XMLDocumentHandler
Overrides:
startElement in class org.cyberneko.html.filters.DefaultFilter
Parameters:
element -
attrs -
augs -
Throws:
org.apache.xerces.xni.XNIException
See Also:
XMLDocumentHandler.startElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes, org.apache.xerces.xni.Augmentations)

doRewrite

protected void doRewrite(org.apache.xerces.xni.QName element,
                         org.apache.xerces.xni.XMLAttributes attrs)

doRewrite

Parameters:
element -
attrs -

rewriteAttribute

protected void rewriteAttribute(String attrName,
                                org.apache.xerces.xni.XMLAttributes attributes)

emptyElement

public void emptyElement(org.apache.xerces.xni.QName element,
                         org.apache.xerces.xni.XMLAttributes attrs,
                         org.apache.xerces.xni.Augmentations arg2)
                  throws org.apache.xerces.xni.XNIException

emptyElement

Specified by:
emptyElement in interface org.apache.xerces.xni.XMLDocumentHandler
Overrides:
emptyElement in class org.cyberneko.html.filters.DefaultFilter
Parameters:
arg0 -
arg1 -
arg2 -
Throws:
org.apache.xerces.xni.XNIException
See Also:
XMLDocumentHandler.emptyElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes, org.apache.xerces.xni.Augmentations)

comment

public void comment(org.apache.xerces.xni.XMLString comment,
                    org.apache.xerces.xni.Augmentations augs)
             throws org.apache.xerces.xni.XNIException

comment

Specified by:
comment in interface org.apache.xerces.xni.XMLDocumentHandler
Overrides:
comment in class org.cyberneko.html.filters.DefaultFilter
Parameters:
comment -
augs -
Throws:
org.apache.xerces.xni.XNIException
See Also:
XMLDocumentHandler.comment(org.apache.xerces.xni.XMLString, org.apache.xerces.xni.Augmentations)

endElement

public void endElement(org.apache.xerces.xni.QName element,
                       org.apache.xerces.xni.Augmentations augs)
                throws org.apache.xerces.xni.XNIException

endElement

Specified by:
endElement in interface org.apache.xerces.xni.XMLDocumentHandler
Overrides:
endElement in class org.cyberneko.html.filters.DefaultFilter
Parameters:
arg0 -
arg1 -
Throws:
org.apache.xerces.xni.XNIException
See Also:
XMLDocumentHandler.endElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.Augmentations)

characters

public void characters(org.apache.xerces.xni.XMLString text,
                       org.apache.xerces.xni.Augmentations arg1)
                throws org.apache.xerces.xni.XNIException

characters

Specified by:
characters in interface org.apache.xerces.xni.XMLDocumentHandler
Overrides:
characters in class org.cyberneko.html.filters.DefaultFilter
Parameters:
arg0 -
arg1 -
Throws:
org.apache.xerces.xni.XNIException
See Also:
XMLDocumentHandler.characters(org.apache.xerces.xni.XMLString, org.apache.xerces.xni.Augmentations)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.