edu.wisc.my.webproxy.beans.filtering
Class InclExclUrlFilter
java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
edu.wisc.my.webproxy.beans.filtering.ChainingSaxFilter
edu.wisc.my.webproxy.beans.filtering.BaseUrlFilter
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
| 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 |
InclExclUrlFilter
public InclExclUrlFilter()
InclExclUrlFilter
public InclExclUrlFilter(XMLReader parent)
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.