|
||||||||||
| 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
edu.wisc.my.webproxy.beans.filtering.AbsoluteUrlFilter
public class AbsoluteUrlFilter
A filter that will re-write relative URLs to absolute URLs. This is required so the portlet can either proxy the URL correctly or if it is not proxied so the URL works correctly.
| Constructor Summary | |
|---|---|
AbsoluteUrlFilter()
The default constructor |
|
AbsoluteUrlFilter(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. |
String |
getName()
Returns a displayable name for the component. |
String |
rewriteUrl(String urlFragment,
boolean passThrough)
Rewrites a relative url to an absolute url |
void |
setActionData(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
This method is called on a component that is being used by the portlet at the begining of the action request it will be used in. |
void |
setRenderData(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
This method is called on a component that is being used by the portlet at the begining of the render request it will be used in. |
| Methods inherited from class edu.wisc.my.webproxy.beans.filtering.BaseUrlFilter |
|---|
endElement, makeCaseInsensitive, setElements, setPassThroughElements, startElement |
| Methods inherited from class edu.wisc.my.webproxy.beans.filtering.ChainingSaxFilter |
|---|
comment, endCDATA, endDTD, endEntity, getLexicalHandler, parse, parse, setLexicalHandler, setParent, 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 |
| Constructor Detail |
|---|
public AbsoluteUrlFilter()
public AbsoluteUrlFilter(XMLReader parent)
parent - the (@link XMLReader) object| Method Detail |
|---|
public String rewriteUrl(String urlFragment,
boolean passThrough)
rewriteUrl in class BaseUrlFilterurlFragment - the relative url as String
public void characters(char[] ch,
int start,
int len)
throws SAXException
characters in interface ContentHandlercharacters in class BaseUrlFilterSAXExceptionXMLFilterImpl.characters(char[], int, int)public String getName()
ProxyComponent
public void setRenderData(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
ProxyComponent
setRenderData in interface ProxyComponentsetRenderData in class ChainingSaxFilter
public void setActionData(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
ProxyComponent
setActionData in interface ProxyComponentsetActionData in class ChainingSaxFilterpublic void clearData()
ProxyComponent
clearData in interface ProxyComponentclearData in class BaseUrlFilterProxyComponent.clearData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||