uk.ac.starlink.astrogrid.protocols.myspace
Class Handler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by uk.ac.starlink.astrogrid.protocols.myspace.Handler

public class Handler
extends URLStreamHandler

Protocol handler for myspace-protocol URLs. The format is as for Java file-protocol URLs, except that all paths are absolute. Like the file protocol handler, the host part is effectively ignored and may be absent (along with its slashes). So either of

     myspace:/demo/messier.xml
     myspace://localhost/demo/messer.xml
 
would references a file "messier.xml" in the "demo" directory under the home directory of the currently logged in user. Using ACR magic, if you're not logged in, a GUI popup window will prompt you to do so during resolution of such URLs.

Both input and output (but not from the same connection) are supported.

Since:
25 Aug 2006
Author:
Mark Taylor

Constructor Summary
Handler()
          No-arg constructor as required.
 
Method Summary
protected  URLConnection openConnection(URL url)
           
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, 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()
No-arg constructor as required.

Method Detail

openConnection

protected URLConnection openConnection(URL url)
                                throws IOException
Specified by:
openConnection in class URLStreamHandler
Throws:
IOException


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.