org.apache.jetspeed.util.rewriter
Interface Rewriter

All Known Implementing Classes:
HTMLRewriter, ProxyRewriter

public interface Rewriter

Interface for URL rewriting.

Version:
$Id: Rewriter.java,v 1.6 2004/02/23 03:18:59 jford Exp $
Author:
David Sean Taylor

Method Summary
 void convertTagEvent(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet attrs)
           
 boolean enterEndTagEvent(javax.swing.text.html.HTML.Tag tag)
           
 boolean enterSimpleTagEvent(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet attrs)
           
 boolean enterStartTagEvent(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet attrs)
           
 boolean enterText(char[] values, int param)
           
 java.lang.String exitEndTagEvent(javax.swing.text.html.HTML.Tag tag)
           
 java.lang.String exitSimpleTagEvent(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet attrs)
           
 java.lang.String exitStartTagEvent(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet attrs)
           
 java.lang.String generateNewUrl(java.lang.String targetURL, javax.swing.text.html.HTML.Tag tag, javax.swing.text.html.HTML.Attribute attribute)
           
 boolean proxyAllTags()
           
 java.lang.String rewrite(java.io.Reader input, java.lang.String baseURL)
           
 

Method Detail

rewrite

public java.lang.String rewrite(java.io.Reader input,
                                java.lang.String baseURL)
                         throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

generateNewUrl

public java.lang.String generateNewUrl(java.lang.String targetURL,
                                       javax.swing.text.html.HTML.Tag tag,
                                       javax.swing.text.html.HTML.Attribute attribute)

proxyAllTags

public boolean proxyAllTags()

enterSimpleTagEvent

public boolean enterSimpleTagEvent(javax.swing.text.html.HTML.Tag tag,
                                   javax.swing.text.MutableAttributeSet attrs)

exitSimpleTagEvent

public java.lang.String exitSimpleTagEvent(javax.swing.text.html.HTML.Tag tag,
                                           javax.swing.text.MutableAttributeSet attrs)

enterStartTagEvent

public boolean enterStartTagEvent(javax.swing.text.html.HTML.Tag tag,
                                  javax.swing.text.MutableAttributeSet attrs)

exitStartTagEvent

public java.lang.String exitStartTagEvent(javax.swing.text.html.HTML.Tag tag,
                                          javax.swing.text.MutableAttributeSet attrs)

enterEndTagEvent

public boolean enterEndTagEvent(javax.swing.text.html.HTML.Tag tag)

exitEndTagEvent

public java.lang.String exitEndTagEvent(javax.swing.text.html.HTML.Tag tag)

enterText

public boolean enterText(char[] values,
                         int param)

convertTagEvent

public void convertTagEvent(javax.swing.text.html.HTML.Tag tag,
                            javax.swing.text.MutableAttributeSet attrs)


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.