httpconnection.java

来自「很棒的web服务器源代码」· Java 代码 · 共 67 行

JAVA
67
字号
// HttpConnection.java// $Id: HttpConnection.java,v 1.12 2000/08/16 21:38:02 ylafon Exp $// (c) COPYRIGHT MIT and INRIA, 1996.// Please first read the full copyright statement in file COPYRIGHT.htmlpackage org.w3c.www.protocol.http;import org.w3c.util.LRUAble;abstract class HttpConnection implements LRUAble {    // LRUAble interface implementation.    protected LRUAble lru_next = null;    protected LRUAble lru_prev = null;    /**     * The server this connection is attached to.     */    protected HttpServer  server  = null;    /**     * state if the connection was cached or not.     */    protected boolean cached = false;    /**     * LRUAble interface - Get previous item in the LRU list.     * @return The previous item, or <strong>null</strong>.     */    public LRUAble getNext() {	return lru_next;    }    /**     * LRUAble interface - Get next item in the LRU list.     * @return The next item, or <strong>null</strong>.     */    public LRUAble getPrev() {	return lru_prev;    }    /**     * LRUAble interface - Set the next item for this server.     */    public void setNext(LRUAble next) {	lru_next = next;    }    /**     * LRUAble interface - Set the previous item for this server.     */    public void setPrev(LRUAble prev) {	lru_prev = prev;    }    protected final HttpServer getServer() {	return server;    }    abstract public void close();}

⌨️ 快捷键说明

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