1 16 17 package org.apache.jetspeed.util.rewriter; 18 19 import java.io.Reader ; 21 22 import java.net.MalformedURLException ; 24 25 import javax.swing.text.html.HTML ; 27 import javax.swing.text.MutableAttributeSet ; 28 29 36 37 public interface Rewriter 38 { 39 40 52 String rewrite(Reader input, String baseURL) 53 throws MalformedURLException ; 54 55 56 70 String generateNewUrl(String targetURL, HTML.Tag tag, HTML.Attribute attribute); 71 72 77 boolean proxyAllTags(); 78 79 boolean enterSimpleTagEvent(HTML.Tag tag, MutableAttributeSet attrs); 81 String exitSimpleTagEvent(HTML.Tag tag, MutableAttributeSet attrs); 82 83 boolean enterStartTagEvent(HTML.Tag tag, MutableAttributeSet attrs); 84 String exitStartTagEvent(HTML.Tag tag, MutableAttributeSet attrs); 85 86 boolean enterEndTagEvent(HTML.Tag tag); 87 String exitEndTagEvent(HTML.Tag tag); 88 89 boolean enterText(char[] values, int param); 90 91 void convertTagEvent(HTML.Tag tag, MutableAttributeSet attrs); 92 } 93 94 | Popular Tags |