org.xwiki.portlet.view
Class HTMLURLAttributeXMLFilter

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by org.xwiki.portlet.view.HTMLURLAttributeXMLFilter
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader

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

An XML filter that rewrites some of the servlet URLs into portlet URLs. Only relative URLs are changed. The following components are affected:

Version:
$Id: b02bd9d9b780cb6fd76c7d66b9509a14d3ed91df $

Constructor Summary
HTMLURLAttributeXMLFilter(URLRewriter urlRewriter)
          Creates a new HTML XML filter which rewrites servlet URLs into portlet URLs.
 
Method Summary
 void startElement(String uri, String localName, String qName, Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, 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

HTMLURLAttributeXMLFilter

public HTMLURLAttributeXMLFilter(URLRewriter urlRewriter)
Creates a new HTML XML filter which rewrites servlet URLs into portlet URLs.

Parameters:
urlRewriter - the object used to rewrite URLs
Method Detail

startElement

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


Copyright © 2004-2013 XWiki. All Rights Reserved.