mimeclientfactory.java

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

JAVA
31
字号
// MimeClientFactory.java// $Id: MimeClientFactory.java,v 1.1 2000/09/19 16:16:07 bmahe Exp $// (c) COPYRIGHT MIT, INRIA and Keio, 2000.// Please first read the full copyright statement in file COPYRIGHT.htmlpackage org.w3c.jigsaw.http;import org.w3c.www.mime.MimeHeaderHolder;import org.w3c.www.mime.MimeParser;import org.w3c.www.mime.MimeParserException;import org.w3c.www.mime.MimeParserFactory;/** * The Mime factory for creating requests out of the client transport streams. * This factory creates instances of <code>org.w3c.jigsaw.http.Request</code> * a server-specific subclass of the generic <code>org.w3c.www.http.HttpRequest * </code> class. * @see org.w3c.www.http.HttpRequest */class MimeClientFactory implements MimeParserFactory {    Client client = null;    public MimeHeaderHolder createHeaderHolder(MimeParser parser) {	return new Request(client, parser);    }    MimeClientFactory(Client client) {	this.client = client;    }}

⌨️ 快捷键说明

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