01: // MimeParserReplyFactory.java
02: // $Id: MimeParserReplyFactory.java,v 1.4 2001/04/11 18:25:22 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 parse factory for HTTP replies.
14: */
15:
16: public class MimeParserReplyFactory implements MimeParserFactory {
17:
18: /**
19: * Create a new HTTP reply to hold the parser's result.
20: * @param parser The MimeParser that wants to parse some message.
21: * @return A MimeParserHandler compliant object.
22: */
23:
24: public MimeHeaderHolder createHeaderHolder(MimeParser parser) {
25: return new HttpReplyMessage(parser);
26: }
27:
28: }
|