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