01: package com.ibm.webdav.protocol.http;
02:
03: /*
04: * (C) Copyright IBM Corp. 2000 All rights reserved.
05: *
06: * The program is provided "AS IS" without any warranty express or
07: * implied, including the warranty of non-infringement and the implied
08: * warranties of merchantibility and fitness for a particular purpose.
09: * IBM will not be liable for any damages suffered by you as a result
10: * of using the Program. In no event will IBM be liable for any
11: * special, indirect or consequential damages or lost profits even if
12: * IBM has been advised of the possibility of their occurrence. IBM
13: * will not be liable for any third party claims against you.
14: */
15:
16: import java.io.*;
17: import java.net.*;
18:
19: /** open an http input stream given a URL */
20: public class Handler extends sun.net.www.protocol.http.Handler {
21: protected String proxy;
22: protected int proxyPort;
23:
24: public Handler() {
25: proxy = null;
26: proxyPort = -1;
27: }
28:
29: public Handler(String proxy, int port) {
30: this .proxy = proxy;
31: this .proxyPort = port;
32: }
33:
34: protected java.net.URLConnection openConnection(URL u)
35: throws IOException {
36: return new WebDAVURLConnection(u, this);
37: }
38: }
|