Class GhidraOSGIStreamHandler

java.lang.Object
java.net.URLStreamHandler
org.osgi.service.url.AbstractURLStreamHandlerService
ghidra.framework.protocol.ghidra.GhidraOSGIStreamHandler
All Implemented Interfaces:
org.osgi.service.url.URLStreamHandlerService

public class GhidraOSGIStreamHandler extends org.osgi.service.url.AbstractURLStreamHandlerService
GhidraOSGIStreamHandler provides a Ghidra URL stream handler service for Felix OSGI. This allows direct use of the standard ghidra protocol Handler and bypasses the improper IOException propagation caused by URLHandlersStreamHandlerProxy.openConnection(URL).
  • Constructor Details

    • GhidraOSGIStreamHandler

      public GhidraOSGIStreamHandler()
  • Method Details

    • 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
      Throws:
      IOException
    • getDefaultPort

      public int getDefaultPort()
      Specified by:
      getDefaultPort in interface org.osgi.service.url.URLStreamHandlerService
      Overrides:
      getDefaultPort in class org.osgi.service.url.AbstractURLStreamHandlerService