edu.wisc.my.webproxy.beans.filtering
Class InclExclUrlFilter

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by edu.wisc.my.webproxy.beans.filtering.ChainingSaxFilter
          extended by edu.wisc.my.webproxy.beans.filtering.BaseUrlFilter
              extended by edu.wisc.my.webproxy.beans.filtering.InclExclUrlFilter
All Implemented Interfaces:
ProxyComponent, ContentHandler, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler, XMLFilter, XMLReader
Direct Known Subclasses:
FuncNameUrlFilter, PortletUrlFilter

public abstract class InclExclUrlFilter
extends BaseUrlFilter

Version:
$Id: InclExclUrlFilter.java 21818 2010-09-29 19:43:17Z edalquist $
Author:
Eric Dalquist edalquist@unicon.net

Constructor Summary
InclExclUrlFilter()
           
InclExclUrlFilter(XMLReader parent)
           
 
Method Summary
protected abstract  String doUrlRewite(String orignialUrl, int matchIndex, boolean passThrough)
          Rewrite URLs that match the RegEx and INCLUDE/EXCLUDE criteria.
protected  String getListType()
           
protected  String[] getUrlRegExList()
           
 String rewriteUrl(String originalUrl, boolean passThrough)
          Abstract method for re-writng a given url
protected  void setListType(String listType)
           
protected  void setUrlRegExList(String[] urlRegExList)
           
 
Methods inherited from class edu.wisc.my.webproxy.beans.filtering.BaseUrlFilter
characters, clearData, endElement, makeCaseInsensitive, setElements, setPassThroughElements, startElement
 
Methods inherited from class edu.wisc.my.webproxy.beans.filtering.ChainingSaxFilter
comment, endCDATA, endDTD, endEntity, getLexicalHandler, parse, parse, setActionData, setLexicalHandler, setParent, setRenderData, startCDATA, startDTD, startEntity
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.wisc.my.webproxy.beans.config.ProxyComponent
getName
 

Constructor Detail

InclExclUrlFilter

public InclExclUrlFilter()

InclExclUrlFilter

public InclExclUrlFilter(XMLReader parent)
Method Detail

rewriteUrl

public final String rewriteUrl(String originalUrl,
                               boolean passThrough)
Description copied from class: BaseUrlFilter
Abstract method for re-writng a given url

Specified by:
rewriteUrl in class BaseUrlFilter
Parameters:
originalUrl - the url as a String before it is re-written to some other url
Returns:
sTempAtt the url as a String after it is re-written to some other url

getListType

protected String getListType()
Returns:
Returns the listType.

setListType

protected void setListType(String listType)
Parameters:
listType - The listType to set.

getUrlRegExList

protected String[] getUrlRegExList()
Returns:
Returns the urlRegExList.

setUrlRegExList

protected void setUrlRegExList(String[] urlRegExList)
Parameters:
urlRegExList - The urlRegExList to set.

doUrlRewite

protected abstract String doUrlRewite(String orignialUrl,
                                      int matchIndex,
                                      boolean passThrough)
Rewrite URLs that match the RegEx and INCLUDE/EXCLUDE criteria.

Parameters:
orignialUrl - The URL to re-write
Returns:
The re-written URL.


Copyright © 2010 Jasig. All Rights Reserved.