org.jasig.portal.channels.webproxy
Class CWebProxyURLFilter

java.lang.Object
  extended by org.jasig.portal.utils.SAX2FilterImpl
      extended by org.jasig.portal.channels.webproxy.CWebProxyURLFilter
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler, XMLFilter, XMLReader
Direct Known Subclasses:
CWebProxyWMLURLFilter, CWebProxyXHTMLURLFilter

Deprecated. All IChannel implementations should be migrated to portlets

@Deprecated
public abstract class CWebProxyURLFilter
extends SAX2FilterImpl

Rewrites URLs for CWebProxy.

Version:
$Revision: 19776 $
Author:
Sarah Arnott, sarnott@mun.ca

Field Summary
protected  String baseUrl
          Deprecated.  
protected  ChannelRuntimeData runtimeData
          Deprecated.  
 
Fields inherited from class org.jasig.portal.utils.SAX2FilterImpl
contentHandler, dtdHandler, entityResolver, errorHandler, lexicalHandler, locator, log
 
Constructor Summary
protected CWebProxyURLFilter(ContentHandler handler)
          Deprecated. A constructor which receives a ContentHandler to which filtered SAX events are passed.
 
Method Summary
protected  String getBase(String url)
          Deprecated. Returns the portion of the URL without the query string.
protected  String getQueryString(String url)
          Deprecated. Returns the query string portion of the URL.
static CWebProxyURLFilter newCWebProxyURLFilter(String mimeType, ChannelRuntimeData runtimeData, ContentHandler handler)
          Deprecated. A factory method that uses mimeType to determine which type of CWebProxyURLFilter to return.
protected  void rewriteURL(String elementName, String attName, String qName, Attributes atts, AttributesImpl attsImpl)
          Deprecated. 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

runtimeData

protected ChannelRuntimeData runtimeData
Deprecated. 

baseUrl

protected String baseUrl
Deprecated. 
Constructor Detail

CWebProxyURLFilter

protected CWebProxyURLFilter(ContentHandler handler)
Deprecated. 
A constructor which receives a ContentHandler to which filtered SAX events are passed.

Parameters:
handler - the ContentHandler to which filtered SAX events are passed
Method Detail

newCWebProxyURLFilter

public static final CWebProxyURLFilter newCWebProxyURLFilter(String mimeType,
                                                             ChannelRuntimeData runtimeData,
                                                             ContentHandler handler)
                                                      throws PortalException
Deprecated. 
A factory method that uses mimeType to determine which type of CWebProxyURLFilter to return. There are currently two types of markup supported: XHTML and WML.

Parameters:
handler - the ContentHandler used to pass along filtered SAX events
runtimeData - the CWebProxy channel runtime data
Throws:
PortalException

rewriteURL

protected final void rewriteURL(String elementName,
                                String attName,
                                String qName,
                                Attributes atts,
                                AttributesImpl attsImpl)
Deprecated. 
A helper method which rewrites an attribute that has a URL value for CWebProxy. The URL rewriting is dependant upon the values of runtime data parameters (see CWebProxy documentation).

Parameters:
elementName - the element name containing an attribute of name attName
attName - the name of the attribute of elementName
qName - the name of the current element
attsImpl - the attributes implementation to contain the new attribute value

getBase

protected String getBase(String url)
Deprecated. 
Returns the portion of the URL without the query string.

Parameters:
url - A String representing the absolute URL.

getQueryString

protected String getQueryString(String url)
Deprecated. 
Returns the query string portion of the URL.

Parameters:
url - A String representing the absolute URL.


Copyright © 2010 Jasig. All Rights Reserved.