Class DefaultGhidraProtocolHandler

  • All Implemented Interfaces:
    ExtensionPoint

    public class DefaultGhidraProtocolHandler
    extends GhidraProtocolHandler
    DefaultGhidraProtocolHandler provides the default protocol handler which corresponds to the original RMI-based Ghidra Server and local file-based Ghidra projects. ghidra://host/repo/... or ghidra:/path/projectName
    • Constructor Detail

      • DefaultGhidraProtocolHandler

        public DefaultGhidraProtocolHandler()
    • Method Detail

      • isExtensionSupported

        public boolean isExtensionSupported​(java.lang.String extProtocolName)
        Description copied from class: GhidraProtocolHandler
        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).
        Specified by:
        isExtensionSupported in class GhidraProtocolHandler
        Parameters:
        extProtocolName - protocol extension name
        Returns:
        true if this handler supports the specified protocol extension name
      • getConnector

        public GhidraProtocolConnector getConnector​(java.net.URL ghidraUrl)
                                             throws java.net.MalformedURLException
        Description copied from class: GhidraProtocolHandler
        Get the Ghidra protocol connector for a Ghidra URL which requires this extension.
        Specified by:
        getConnector in class GhidraProtocolHandler
        Returns:
        Ghidra protocol connector
        Throws:
        java.net.MalformedURLException - if URL is invalid