net.sf.sail.core.net.podar
Class Handler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by net.sf.sail.core.net.podar.Handler

public class Handler
extends java.net.URLStreamHandler

Implementation of custom podarprotocol.

Author:
turadg AUDIT07-

Constructor Summary
Handler()
           
 
Method Summary
 java.net.URLConnection openConnection(java.net.URL u)
          The method is marked as public so other types of url stream handling mechanisms can call it.
static void registerProtocol()
          Teach the VM to handle podar URLs
 
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()
Method Detail

registerProtocol

public static void registerProtocol()
Teach the VM to handle podar URLs


openConnection

public java.net.URLConnection openConnection(java.net.URL u)
                                      throws java.io.IOException
The method is marked as public so other types of url stream handling mechanisms can call it. one example is the osgi url handling mechanism.

Specified by:
openConnection in class java.net.URLStreamHandler
Throws:
java.io.IOException


Copyright © 2004-2008 TELS Center. All Rights Reserved.