Package ghidra.framework.protocol.ghidra
Class GhidraURLQuery
java.lang.Object
ghidra.framework.protocol.ghidra.GhidraURLQuery
GhidraURLQuery
performs remote Ghidra repository and read-only local project
queries for processing either a DomainFile
or DomainFolder
that a
Ghidra URL may reference.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
queryRepositoryUrl
(URL ghidraUrl, boolean readOnly, GhidraURLResultHandler resultHandler, TaskMonitor monitor) Perform query using specified GhidraURL and process result.static void
queryUrl
(URL ghidraUrl, GhidraURLResultHandler resultHandler, TaskMonitor monitor) Perform read-only query using specified GhidraURL and process result.
-
Constructor Details
-
GhidraURLQuery
public GhidraURLQuery()
-
-
Method Details
-
queryUrl
public static void queryUrl(URL ghidraUrl, GhidraURLResultHandler resultHandler, TaskMonitor monitor) throws IOException, CancelledException Perform read-only query using specified GhidraURL and process result. Both local project and remote repository URLs are supported. This method is intended to be invoked from within aTask
or for headless operations.- Parameters:
ghidraUrl
- local or remote Ghidra URLresultHandler
- query result handlermonitor
- task monitor- Throws:
IOException
- if an IO error occurs which was re-thrown byresultHandler
CancelledException
- if task is cancelled
-
queryRepositoryUrl
public static void queryRepositoryUrl(URL ghidraUrl, boolean readOnly, GhidraURLResultHandler resultHandler, TaskMonitor monitor) throws IOException, CancelledException Perform query using specified GhidraURL and process result. Both local project and remote repository URLs are supported. This method is intended to be invoked from within aTask
or for headless operations.- Parameters:
ghidraUrl
- local or remote Ghidra URLreadOnly
- allows update/commit (false) or read-only (true) access.resultHandler
- query result handlermonitor
- task monitor- Throws:
IOException
- if an IO error occurs which was re-thrown byresultHandler
CancelledException
- if task is cancelled
-