| java.lang.Object org.jasig.portal.utils.SAX2FilterImpl org.jasig.portal.utils.AbsoluteURLFilter
All known Subclasses: org.jasig.portal.utils.WMLURLFilter, org.jasig.portal.utils.XHTMLURLFilter,
AbsoluteURLFilter | abstract public class AbsoluteURLFilter extends SAX2FilterImpl (Code) | | Replaces all relative URLs with absolute URLs.
author: Ken Weiner, kweiner@unicon.net version: $Revision: 34793 $ |
AbsoluteURLFilter | protected AbsoluteURLFilter(ContentHandler handler)(Code) | | A constructor which receives a ContentHandler to which
filtered SAX events are passed
Parameters: handler - the ContentHandler to which filtered SAX events are passed |
fixURL | final protected void fixURL(String elementName, String attName, String qName, Attributes atts, AttributesImpl attsImpl)(Code) | | A helper method for derivitive classes to easily fix an attribute
that has a relative URL value
Parameters: elementName - the element name containing an attribute of name attName Parameters: attName - the name of the attribute of elementName Parameters: qName - the name of the current element Parameters: atts - the attibutes of the current element Parameters: attsImpl - the attributes implementation to contain the new attribute value |
newAbsoluteURLFilter | final public static AbsoluteURLFilter newAbsoluteURLFilter(String mimeType, String baseUrl, ContentHandler handler) throws PortalException(Code) | | A factory method that uses a mime type to decide which kind of
AbsoluteURLFilter to instantiate. There are currently two types
of markup supported: XHTML and WML.
Parameters: mimeType - the mime type of the markup that this filter will apply to Parameters: baseUrl - the base URL to be prepended to relative URL paths Parameters: handler - the ContentHandler to which to pass along filtered SAX events filter the AbsoluteURLFilter matching the mimeType |
setBaseUrl | protected void setBaseUrl(String url)(Code) | | Sets the base URL.
Parameters: url - the new base URL |
Methods inherited from org.jasig.portal.utils.SAX2FilterImpl | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void comment(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endCDATA() throws SAXException(Code)(Java Doc) public void endDTD() throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endEntity(String name) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public ContentHandler getContentHandler()(Code)(Java Doc) public DTDHandler getDTDHandler()(Code)(Java Doc) public EntityResolver getEntityResolver()(Code)(Java Doc) public ErrorHandler getErrorHandler()(Code)(Java Doc) public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public XMLReader getParent()(Code)(Java Doc) public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void parse(InputSource input) throws SAXException, IOException(Code)(Java Doc) public void parse(String systemId) throws SAXException, IOException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException(Code)(Java Doc) public void setAllHandlers(ContentHandler ch)(Code)(Java Doc) public void setContentHandler(ContentHandler handler)(Code)(Java Doc) public void setDTDHandler(DTDHandler handler)(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void setEntityResolver(EntityResolver resolver)(Code)(Java Doc) public void setErrorHandler(ErrorHandler handler)(Code)(Java Doc) public void setFeature(String name, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void setLexicalHandler(LexicalHandler handler)(Code)(Java Doc) public void setParent(XMLReader parent)(Code)(Java Doc) public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startCDATA() throws SAXException(Code)(Java Doc) public void startDTD(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException(Code)(Java Doc) public void startEntity(String name) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|