01: package com.ibm.webdav.protocol.rmi;
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: import java.io.*;
16: import java.net.*;
17:
18: /** Open an rmi input stream given a URL. This handler is only
19: * used to allow construction of URLs having rmi as their protocol.
20: * WebDAV uses this to determine what protocol to use for accessing
21: * a resource.
22: */
23: public class Handler extends java.net.URLStreamHandler {
24: protected String proxy;
25: protected int proxyPort;
26:
27: public Handler() {
28: proxy = null;
29: proxyPort = -1;
30: }
31:
32: public Handler(String proxy, int port) {
33: this .proxy = proxy;
34: this .proxyPort = port;
35: }
36:
37: /** It is not expected that a connection would ever be opened
38: * for RMI. Use Naming.lookup() instead.
39: */
40: protected java.net.URLConnection openConnection(URL u)
41: throws IOException {
42: return null;
43: }
44: }
|