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

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

public class Handler
extends URLStreamHandler

Protocol handler for "ivo:" type URLs. This currently interprets them in the way they are used by AstroGrid's MySpace (as per ACR v2006.3). They look like this:

    ivo://uk.ac.le.star/filemanager#node-2201/demo/messier.vot
 

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

Since:
25 Aug 2006
Author:
Mark Taylor
See Also:
URL.URL(java.lang.String,java.lang.String,int,java.lang.String), URLUtils.installCustomHandlers()

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

parseURL

protected void parseURL(URL url,
                        String spec,
                        int start,
                        int limit)
Overrides:
parseURL in class URLStreamHandler


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