org.apache.servicemix.jbi.deployer.handler
Class URLHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.osgi.service.url.AbstractURLStreamHandlerService
          extended by org.apache.servicemix.jbi.deployer.handler.URLHandler
All Implemented Interfaces:
org.osgi.service.url.URLStreamHandlerService

public class URLHandler
extends org.osgi.service.url.AbstractURLStreamHandlerService

A URL handler that will transform a JBI artifact to an OSGi bundle on the fly. Needs to be registered in the OSGi registry.


Field Summary
 
Fields inherited from class org.osgi.service.url.AbstractURLStreamHandlerService
realHandler
 
Constructor Summary
URLHandler()
           
 
Method Summary
 java.net.URLConnection openConnection(java.net.URL url)
          Open the connection for the given URL.
 
Methods inherited from class org.osgi.service.url.AbstractURLStreamHandlerService
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalForm
 
Methods inherited from class java.net.URLStreamHandler
openConnection, parseURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLHandler

public URLHandler()
Method Detail

openConnection

public java.net.URLConnection openConnection(java.net.URL url)
                                      throws java.io.IOException
Open the connection for the given URL.

Specified by:
openConnection in interface org.osgi.service.url.URLStreamHandlerService
Specified by:
openConnection in class org.osgi.service.url.AbstractURLStreamHandlerService
Parameters:
url - the url from which to open a connection.
Returns:
a connection on the specified URL.
Throws:
java.io.IOException - if an error occurs or if the URL is malformed.


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.