|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.utils.SAX2FilterImpl
org.jasig.portal.channels.webproxy.CWebProxyURLFilter
public abstract class CWebProxyURLFilter
Rewrites URLs for CWebProxy.
| Field Summary | |
|---|---|
protected java.lang.String |
baseUrl
|
protected ChannelRuntimeData |
runtimeData
|
| Fields inherited from class org.jasig.portal.utils.SAX2FilterImpl |
|---|
contentHandler, dtdHandler, entityResolver, errorHandler, lexicalHandler, locator, log |
| Constructor Summary | |
|---|---|
protected |
CWebProxyURLFilter(org.xml.sax.ContentHandler handler)
A constructor which receives a ContentHandler to which filtered SAX events are passed. |
| Method Summary | |
|---|---|
protected java.lang.String |
getBase(java.lang.String url)
Returns the portion of the URL without the query string. |
protected java.lang.String |
getQueryString(java.lang.String url)
Returns the query string portion of the URL. |
static CWebProxyURLFilter |
newCWebProxyURLFilter(java.lang.String mimeType,
ChannelRuntimeData runtimeData,
org.xml.sax.ContentHandler handler)
A factory method that uses mimeType to determine which type of CWebProxyURLFilter to return. |
protected void |
rewriteURL(java.lang.String elementName,
java.lang.String attName,
java.lang.String qName,
org.xml.sax.Attributes atts,
org.xml.sax.helpers.AttributesImpl attsImpl)
A helper method which rewrites an attribute that has a URL value for CWebProxy. |
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ChannelRuntimeData runtimeData
protected java.lang.String baseUrl
| Constructor Detail |
|---|
protected CWebProxyURLFilter(org.xml.sax.ContentHandler handler)
handler - the ContentHandler to which filtered SAX events are passed| Method Detail |
|---|
public static final CWebProxyURLFilter newCWebProxyURLFilter(java.lang.String mimeType,
ChannelRuntimeData runtimeData,
org.xml.sax.ContentHandler handler)
throws PortalException
handler - the ContentHandler used to pass along filtered SAX eventsruntimeData - the CWebProxy channel runtime data
PortalException
protected final void rewriteURL(java.lang.String elementName,
java.lang.String attName,
java.lang.String qName,
org.xml.sax.Attributes atts,
org.xml.sax.helpers.AttributesImpl attsImpl)
elementName - the element name containing an attribute of name attNameattName - the name of the attribute of elementNameqName - the name of the current elementattsImpl - the attributes implementation to contain the new attribute valueprotected java.lang.String getBase(java.lang.String url)
url - A String representing the absolute URL.protected java.lang.String getQueryString(java.lang.String url)
url - A String representing the absolute URL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||