|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
edu.wisc.my.webproxy.beans.filtering.ChainingSaxFilter
edu.wisc.my.webproxy.beans.filtering.BaseUrlFilter
public abstract class BaseUrlFilter
The base URL filter is an abstract filter that locates URLs in the proxied content and call an abstract method to re-write the URL.
| Constructor Summary | |
|---|---|
BaseUrlFilter()
The default constructor |
|
BaseUrlFilter(XMLReader parent)
Constructor that takes XMLReader object as argument |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int len)
|
void |
clearData()
Called at the end of a request that the component was used in. |
void |
endElement(String uri,
String localName,
String qName)
|
protected Map<String,Set<String>> |
makeCaseInsensitive(Map<String,Set<String>> elements)
|
abstract String |
rewriteUrl(String sTempAtt,
boolean passThrough)
Abstract method for re-writng a given url |
void |
setElements(Map<String,Set<String>> elements)
|
void |
setPassThroughElements(Map<String,Set<String>> passThroughElements)
|
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
Filter the Namespace URI for start-element events. |
| 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 |
|---|
public BaseUrlFilter(XMLReader parent)
parent - the (@link XMLReader) objectpublic BaseUrlFilter()
| Method Detail |
|---|
public void setElements(Map<String,Set<String>> elements)
public void setPassThroughElements(Map<String,Set<String>> passThroughElements)
protected Map<String,Set<String>> makeCaseInsensitive(Map<String,Set<String>> elements)
public void startElement(String uri,
String localName,
String qName,
Attributes atts)
throws SAXException
startElement in interface ContentHandlerstartElement in class XMLFilterImpluri - the uri as a StringlocalName - the local name as a StringqName - the query name as a String
SAXException
public abstract String rewriteUrl(String sTempAtt,
boolean passThrough)
sTempAtt - the url as a String before it is re-written to some other url
public void endElement(String uri,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerendElement in class XMLFilterImplSAXException
public void characters(char[] ch,
int start,
int len)
throws SAXException
characters in interface ContentHandlercharacters in class ChainingSaxFilterSAXExceptionXMLFilterImpl.characters(char[], int, int)public void clearData()
ProxyComponent
clearData in interface ProxyComponentclearData in class ChainingSaxFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||