01: // DAVMimeClientFactory.java
02: // $Id: DAVMimeClientFactory.java,v 1.1 2000/09/19 16:14:32 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.webdav;
06:
07: import org.w3c.jigsaw.http.Client;
08:
09: import org.w3c.www.mime.MimeHeaderHolder;
10: import org.w3c.www.mime.MimeParser;
11: import org.w3c.www.mime.MimeParserException;
12: import org.w3c.www.mime.MimeParserFactory;
13:
14: /**
15: * The Mime factory for creating requests out of the client transport streams.
16: * This factory creates instances of
17: * <code>org.w3c.jigsaw.webdav.DAVRequest</code>
18: */
19: class DAVMimeClientFactory implements MimeParserFactory {
20:
21: Client client = null;
22:
23: public MimeHeaderHolder createHeaderHolder(MimeParser parser) {
24: return new DAVRequest(client, parser);
25: }
26:
27: DAVMimeClientFactory(Client client) {
28: this.client = client;
29: }
30: }
|