edu.wisc.ssec.mcidas.adde
Class AddeURLStreamHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by edu.wisc.ssec.mcidas.adde.AddeURLStreamHandler
Direct Known Subclasses:
Handler

public class AddeURLStreamHandler
extends URLStreamHandler

This class defines the openConnection method, which is used to create an AddeURLConnection. Note that this class is automatically loaded when a URL of this type is created, you don't have explicitly create an object.

Author:
Tommy Jasmin, University of Wisconsin, SSEC

Constructor Summary
AddeURLStreamHandler()
           
 
Method Summary
protected  int getDefaultPort()
          Returns the default port for a URL parsed by this handler.
protected  URLConnection openConnection(URL url)
          returns a reference to a special URLConnection object designed to implement the ADDE protocol.
 
Methods inherited from class java.net.URLStreamHandler
equals, 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

AddeURLStreamHandler

public AddeURLStreamHandler()
Method Detail

openConnection

protected URLConnection openConnection(URL url)
                                throws IOException
returns a reference to a special URLConnection object designed to implement the ADDE protocol.

Specified by:
openConnection in class URLStreamHandler
Parameters:
url - - user specified URL, encodes ADDE request
Returns:
AddeURLConnection reference.
Throws:
IOException

getDefaultPort

protected int getDefaultPort()
Returns the default port for a URL parsed by this handler. This method is meant to be overidden by handlers with default port numbers.

Overrides:
getDefaultPort in class URLStreamHandler