org.apache.karaf.tooling.features
Class FeatureURLHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.apache.karaf.tooling.features.FeatureURLHandler

public class FeatureURLHandler
extends URLStreamHandler

As org.apache.karaf.deployer.features.FeatureURLHandler needs to be run with OSGi container this class was created for use by the features-maven-plugin


Nested Class Summary
 class FeatureURLHandler.Connection
           
 
Constructor Summary
FeatureURLHandler()
           
 
Method Summary
 URL getFeatureXmlURL()
           
 URLConnection openConnection(URL url)
          Open the connection for the given URL.
 
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

FeatureURLHandler

public FeatureURLHandler()
Method Detail

openConnection

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

Specified by:
openConnection in class URLStreamHandler
Parameters:
url - the url from which to open a connection.
Returns:
a connection on the specified URL.
Throws:
IOException - if an error occurs or if the URL is malformed.

getFeatureXmlURL

public URL getFeatureXmlURL()


Copyright © 2007-2013 FuseSource, Corp.. All Rights Reserved.