org.apache.felix.fileinstall.internal
Class JarDirUrlHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.osgi.service.url.AbstractURLStreamHandlerService
          extended by org.apache.felix.fileinstall.internal.JarDirUrlHandler
All Implemented Interfaces:
URLStreamHandlerService

public class JarDirUrlHandler
extends AbstractURLStreamHandlerService

A URL handler that can jar a directory on the fly


Nested Class Summary
 class JarDirUrlHandler.Connection
           
 
Field Summary
static String PROTOCOL
           
 
Fields inherited from class org.osgi.service.url.AbstractURLStreamHandlerService
realHandler
 
Constructor Summary
JarDirUrlHandler()
           
 
Method Summary
 URLConnection openConnection(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
parseURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL

public static final String PROTOCOL
See Also:
Constant Field Values
Constructor Detail

JarDirUrlHandler

public JarDirUrlHandler()
Method Detail

openConnection

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

Specified by:
openConnection in interface URLStreamHandlerService
Specified by:
openConnection in class AbstractURLStreamHandlerService
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.
See Also:
"java.net.URLStreamHandler.openConnection"


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.