org.eclipse.jetty.osgi.boot.warurl
Class WarUrlStreamHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.osgi.service.url.AbstractURLStreamHandlerService
          extended by org.eclipse.jetty.osgi.boot.warurl.WarUrlStreamHandler
All Implemented Interfaces:
org.osgi.service.url.URLStreamHandlerService

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

RFC-66: support for the "war" protocol We are reusing the parsing of the query string from jetty. If we wanted to not depend on jetty at all we could duplicate that method here


Field Summary
 
Fields inherited from class org.osgi.service.url.AbstractURLStreamHandlerService
realHandler
 
Constructor Summary
WarUrlStreamHandler()
           
 
Method Summary
 URLConnection openConnection(URL 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

WarUrlStreamHandler

public WarUrlStreamHandler()
Method Detail

openConnection

public URLConnection openConnection(URL url)
                             throws IOException
Specified by:
openConnection in interface org.osgi.service.url.URLStreamHandlerService
Specified by:
openConnection in class org.osgi.service.url.AbstractURLStreamHandlerService
Parameters:
url - The url with a war scheme
Throws:
IOException


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.