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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumGhidraURLQuery.LinkFileControlsetting control how link-files will be followed. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidqueryRepositoryUrl(URL ghidraUrl, boolean readOnly, GhidraURLResultHandler resultHandler, GhidraURLQuery.LinkFileControl linkFileControl, TaskMonitor monitor) Perform query using specified GhidraURL and process result.static voidqueryUrl(URL ghidraUrl, Class<? extends DomainObject> contentClass, GhidraURLResultHandler resultHandler, GhidraURLQuery.LinkFileControl linkFileControl, TaskMonitor monitor) Perform read-only query using specified GhidraURL and process result.
-
Method Details
-
queryUrl
public static void queryUrl(URL ghidraUrl, Class<? extends DomainObject> contentClass, GhidraURLResultHandler resultHandler, GhidraURLQuery.LinkFileControl linkFileControl, 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 aTaskor for headless operations.- Parameters:
ghidraUrl- local or remote Ghidra URLcontentClass- expected content class or null. If a folder is expectedNullFolderDomainObjectclass should be specified.resultHandler- query result handlerlinkFileControl- controls how or if link files will be followedmonitor- task monitor- Throws:
IOException- if an IO error occurs which was re-thrown byresultHandlerCancelledException- if task is cancelled
-
queryRepositoryUrl
public static void queryRepositoryUrl(URL ghidraUrl, boolean readOnly, GhidraURLResultHandler resultHandler, GhidraURLQuery.LinkFileControl linkFileControl, 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 aTaskor for headless operations.- Parameters:
ghidraUrl- local or remote folder-level Ghidra URLreadOnly- allows update/commit (false) or read-only (true) access.resultHandler- query result handlerlinkFileControl- controls how or if link files will be followedmonitor- task monitor- Throws:
IOException- if an IO error occurs which was re-thrown byresultHandlerCancelledException- if task is cancelled
-