01: // MimeClientFactory.java
02: // $Id: MimeClientFactory.java,v 1.1 2000/09/19 16:16:07 bmahe Exp $
03: // (c) COPYRIGHT MIT, INRIA and Keio, 2000.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05: package org.w3c.jigsaw.http;
06:
07: import org.w3c.www.mime.MimeHeaderHolder;
08: import org.w3c.www.mime.MimeParser;
09: import org.w3c.www.mime.MimeParserException;
10: import org.w3c.www.mime.MimeParserFactory;
11:
12: /**
13: * The Mime factory for creating requests out of the client transport streams.
14: * This factory creates instances of <code>org.w3c.jigsaw.http.Request</code>
15: * a server-specific subclass of the generic <code>org.w3c.www.http.HttpRequest
16: * </code> class.
17: * @see org.w3c.www.http.HttpRequest
18: */
19:
20: class MimeClientFactory implements MimeParserFactory {
21: Client client = null;
22:
23: public MimeHeaderHolder createHeaderHolder(MimeParser parser) {
24: return new Request(client, parser);
25: }
26:
27: MimeClientFactory(Client client) {
28: this.client = client;
29: }
30: }
|