Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.URLConnection openConnection​(java.net.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 java.net.URLConnection openConnection​(java.net.URL url)
                                              throws java.io.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:
        java.io.IOException