servlet.java

来自「这是一款基于PlaceLab软件开发的导航系统中间件的客户端程序.」· Java 代码 · 共 27 行

JAVA
27
字号
package org.placelab.proxy;import java.util.Hashtable;/** *  * * Implement one of these and register it with the ServletEngine to intercept * requests coming in to the proxy */public interface Servlet {	/**	 * Servlets can have human readable names. This is just for convenience.	 */	public String getName();		/** A serlvet must reply to passed in http requests	 */	public HTTPResponse serviceRequest(HTTPRequest req);	/**	 * lets a servlet inject headers into a request that's handled by anybody	 * @param req	 * @return null if you don't want to inject headers, or a Hashtable of headers/values if you do	 */	public Hashtable injectHeaders(HTTPRequest req);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?