KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ibm > webdav > protocol > rmi > Handler


1 package com.ibm.webdav.protocol.rmi;
2
3 /*
4  * (C) Copyright IBM Corp. 2000 All rights reserved.
5  *
6  * The program is provided "AS IS" without any warranty express or
7  * implied, including the warranty of non-infringement and the implied
8  * warranties of merchantibility and fitness for a particular purpose.
9  * 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 JavaDoc {
24    protected String JavaDoc proxy;
25    protected int proxyPort;
26 public Handler() {
27     proxy = null;
28     proxyPort = -1;
29 }
30 public Handler(String JavaDoc proxy, int port) {
31     this.proxy = proxy;
32     this.proxyPort = port;
33 }
34 /** It is not expected that a connection would ever be opened
35 * for RMI. Use Naming.lookup() instead.
36 */

37 protected java.net.URLConnection JavaDoc openConnection(URL u) throws IOException {
38     return null;
39 }
40 }
41
Popular Tags