org.apache.geronimo.system.url.file
Class Handler

java.lang.Object
  extended byjava.net.URLStreamHandler
      extended byorg.apache.geronimo.system.url.file.Handler

public class Handler
extends URLStreamHandler

A protocol handler for the 'file' protocol.

Version:
$Revision: 1.3 $ $Date: 2004/06/25 20:48:53 $

Constructor Summary
Handler()
           
 
Method Summary
 URLConnection openConnection(URL url)
          Open a connection to the file.
protected  void parseURL(URL url, String s, int i, int j)
           
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, sameFile, setURL, setURL, toExternalForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handler

public Handler()
Method Detail

parseURL

protected void parseURL(URL url,
                        String s,
                        int i,
                        int j)

openConnection

public URLConnection openConnection(URL url)
                             throws IOException
Open a connection to the file.

NOTE: Sun's impl attempts to translate into a 'ftp' URL which is dumb so fix that by removing it ;-)

Throws:
IOException


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.