uPortal 2.4.1
API Documentation

org.jasig.portal.utils
Class AbsoluteURLFilter

java.lang.Object
  extended byorg.jasig.portal.utils.SAX2FilterImpl
      extended byorg.jasig.portal.utils.AbsoluteURLFilter
All Implemented Interfaces:
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:
WMLURLFilter, XHTMLURLFilter

public abstract class AbsoluteURLFilter
extends SAX2FilterImpl

Replaces all relative URLs with absolute URLs.

Version:
$Revision: 1.12 $
Author:
Ken Weiner, kweiner@unicon.net

Method Summary
static AbsoluteURLFilter newAbsoluteURLFilter(java.lang.String mimeType, java.lang.String baseUrl, org.xml.sax.ContentHandler handler)
          A factory method that uses a mime type to decide which kind of AbsoluteURLFilter to instantiate.
 
Methods inherited from class org.jasig.portal.utils.SAX2FilterImpl
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setAllHandlers, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setLexicalHandler, setParent, setProperty, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newAbsoluteURLFilter

public static final AbsoluteURLFilter newAbsoluteURLFilter(java.lang.String mimeType,
                                                           java.lang.String baseUrl,
                                                           org.xml.sax.ContentHandler handler)
                                                    throws PortalException
A factory method that uses a mime type to decide which kind of AbsoluteURLFilter to instantiate. There are currently two types of markup supported: XHTML and WML.

Parameters:
mimeType - the mime type of the markup that this filter will apply to
baseUrl - the base URL to be prepended to relative URL paths
handler - the ContentHandler to which to pass along filtered SAX events
Returns:
filter the AbsoluteURLFilter matching the mimeType
Throws:
PortalException

uPortal 2.4.1
API Documentation