Class GhidraProtocolHandler

  • All Implemented Interfaces:
    ExtensionPoint
    Direct Known Subclasses:
    DefaultGhidraProtocolHandler

    public abstract class GhidraProtocolHandler
    extends java.lang.Object
    implements ExtensionPoint
    GhidraProtocolHandler provides the extension point for Ghidra protocol extensions. A Ghidra protocol extension will be identified within by the optional extProtocolName appearing within a Ghidra URL: ghidra:[<extProtocolName>:]/... In the absence of a protocol extension the DefaultGhidraProtocolHandler will be used.
    • Constructor Detail

      • GhidraProtocolHandler

        public GhidraProtocolHandler()
    • Method Detail

      • isExtensionSupported

        public abstract boolean isExtensionSupported​(java.lang.String extProtocolName)
        Determine if this protocol handler is responsible for handling the specified named protocol extension. One handler may support multiple protocol extension names (e.g., http and https).
        Parameters:
        extProtocolName - protocol extension name
        Returns:
        true if this handler supports the specified protocol extension name
      • getConnector

        public abstract GhidraProtocolConnector getConnector​(java.net.URL ghidraUrl)
                                                      throws java.net.MalformedURLException
        Get the Ghidra protocol connector for a Ghidra URL which requires this extension.
        Parameters:
        url - Ghidra protocol URL
        Returns:
        Ghidra protocol connector
        Throws:
        java.net.MalformedURLException - if URL is invalid