?? htmlfilter.java
字號:
package rabbit.filter;import rabbit.html.HtmlBlock;import rabbit.http.HttpHeader;import rabbit.proxy.Connection;/** This class describes the functions neccessary to filter a block of * html. * * @author <a href="mailto:robo@khelekore.org">Robert Olofsson</a> */public abstract class HtmlFilter implements HtmlFilterFactory { /** The Connection handling the request. */ protected Connection con; /** The actual request made. */ protected HttpHeader request; /** The actual response. */ protected HttpHeader response; /** Create the factory. */ public HtmlFilter () { } /** Create a new HtmlFilter for the given request, response pair. * @param request the actual request made. * @param response the actual response being sent. */ public HtmlFilter (Connection con, HttpHeader request, HttpHeader response) { this.con = con; this.request = request; this.response = response; } /** Get a new HtmlFilter for the given request, response pair. * @param con the Connection handling the request. * @param request the actual request made. * @param response the actual response being sent. */ public abstract HtmlFilter newFilter (Connection con, HttpHeader request, HttpHeader response); /** Filter a block of html. * @param block the part of the html page to filter. */ public abstract void filterHtml (HtmlBlock block);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -