org.portletbridge.xsl
Class LinkRewriterXmlFilter

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by org.portletbridge.xsl.LinkRewriterXmlFilter
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader

public class LinkRewriterXmlFilter
extends org.xml.sax.helpers.XMLFilterImpl

This will not work with a base tag that points to a different host

Author:
JMcCrindle

Constructor Summary
LinkRewriterXmlFilter()
          Default Constructor
LinkRewriterXmlFilter(org.xml.sax.XMLReader parent)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
 java.lang.String getBaseUrl()
           
 void setOriginalUrl(java.lang.String originalUrl)
           
 void setStyleSheetRewriter(StyleSheetRewriter styleSheetRewriter)
           
 void setUrlRewriter(UrlRewriter urlRewriter)
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, 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

LinkRewriterXmlFilter

public LinkRewriterXmlFilter()
Default Constructor


LinkRewriterXmlFilter

public LinkRewriterXmlFilter(org.xml.sax.XMLReader parent)
Parameters:
parent -
Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.XMLFilterImpl
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.XMLFilterImpl
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                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

setUrlRewriter

public void setUrlRewriter(UrlRewriter urlRewriter)

setOriginalUrl

public void setOriginalUrl(java.lang.String originalUrl)

getBaseUrl

public java.lang.String getBaseUrl()

setStyleSheetRewriter

public void setStyleSheetRewriter(StyleSheetRewriter styleSheetRewriter)


Copyright © 2002-2006 Grape Design Limited. All Rights Reserved.