edu.wisc.ssec.mcidas.adde
Class AddeURLStreamHandler
java.lang.Object
java.net.URLStreamHandler
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
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddeURLStreamHandler
public AddeURLStreamHandler()
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