org.xwiki.portlet.view
Class HTMLConditionalCommentsXMLFilter

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

public class HTMLConditionalCommentsXMLFilter
extends org.xml.sax.helpers.XMLFilterImpl
implements LexicalHandler

An XML filter that rewrites <link> HREFs inside Internet Explorer's specific conditional comments.

Version:
$Id: 008c84a2ca227f78b8e2531a4f6a90860427d809 $

Constructor Summary
HTMLConditionalCommentsXMLFilter(URLRewriter urlRewriter)
          Creates a new XML filter that rewrites link HREFs inside Internet Explorer's specific conditional comments.
 
Method Summary
 void comment(char[] ch, int start, int length)
           
 void endCDATA()
           
 void endDTD()
           
 void endEntity(String name)
           
 void parse(InputSource in)
           
 void setProperty(String uri, Object handler)
           
 void startCDATA()
           
 void startDTD(String name, String publicId, String systemId)
           
 void startEntity(String name)
           
 
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, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLConditionalCommentsXMLFilter

public HTMLConditionalCommentsXMLFilter(URLRewriter urlRewriter)
Creates a new XML filter that rewrites link HREFs inside Internet Explorer's specific conditional comments.

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

setProperty

public void setProperty(String uri,
                        Object handler)
                 throws SAXNotSupportedException,
                        SAXNotRecognizedException
Specified by:
setProperty in interface XMLReader
Overrides:
setProperty in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXNotSupportedException
SAXNotRecognizedException

parse

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

comment

public void comment(char[] ch,
                    int start,
                    int length)
             throws SAXException
Specified by:
comment in interface LexicalHandler
Throws:
SAXException

endCDATA

public void endCDATA()
              throws SAXException
Specified by:
endCDATA in interface LexicalHandler
Throws:
SAXException

endDTD

public void endDTD()
            throws SAXException
Specified by:
endDTD in interface LexicalHandler
Throws:
SAXException

endEntity

public void endEntity(String name)
               throws SAXException
Specified by:
endEntity in interface LexicalHandler
Throws:
SAXException

startCDATA

public void startCDATA()
                throws SAXException
Specified by:
startCDATA in interface LexicalHandler
Throws:
SAXException

startDTD

public void startDTD(String name,
                     String publicId,
                     String systemId)
              throws SAXException
Specified by:
startDTD in interface LexicalHandler
Throws:
SAXException

startEntity

public void startEntity(String name)
                 throws SAXException
Specified by:
startEntity in interface LexicalHandler
Throws:
SAXException


Copyright © 2004-2013 XWiki. All Rights Reserved.