Package ghidra.framework.protocol.ghidra
Class GhidraProtocolHandler
- java.lang.Object
-
- ghidra.framework.protocol.ghidra.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 theDefaultGhidraProtocolHandler
will be used.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ghidra.util.classfinder.ExtensionPoint
ExtensionPoint.Exclude, ExtensionPoint.Util
-
-
Constructor Summary
Constructors Constructor Description GhidraProtocolHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract GhidraProtocolConnector
getConnector(java.net.URL ghidraUrl)
Get the Ghidra protocol connector for a Ghidra URL which requires this extension.abstract boolean
isExtensionSupported(java.lang.String extProtocolName)
Determine if this protocol handler is responsible for handling the specified named protocol extension.
-
-
-
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
-
-