01: // MimeParserRequestFactory.java
02: // $Id: MimeParserRequestFactory.java,v 1.4 2000/08/16 21:38:01 ylafon Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1996.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.www.http;
07:
08: import org.w3c.www.mime.MimeHeaderHolder;
09: import org.w3c.www.mime.MimeParser;
10: import org.w3c.www.mime.MimeParserFactory;
11:
12: /**
13: * The MIME parser factory for HTTP requests.
14: */
15:
16: public class MimeParserRequestFactory implements MimeParserFactory {
17:
18: /**
19: * Create a new HTTP request to hold the parser's result.
20: * @param parser The parser that has something to parse.
21: * @return A MimeParserHandler compliant object.
22: */
23:
24: public MimeHeaderHolder createHeaderHolder(MimeParser parser) {
25: return new HttpRequestMessage(parser);
26: }
27: }
|