⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htmlfilter.java

📁 一款Java实现的HTTP代理服务器
💻 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 + -