Class GhidraURLQuery

java.lang.Object
ghidra.framework.protocol.ghidra.GhidraURLQuery

public abstract class GhidraURLQuery extends Object
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 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 a Task or for headless operations.
      Parameters:
      ghidraUrl - local or remote Ghidra URL
      resultHandler - query result handler
      monitor - task monitor
      Throws:
      IOException - if an IO error occurs which was re-thrown by resultHandler
      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 a Task or for headless operations.
      Parameters:
      ghidraUrl - local or remote Ghidra URL
      readOnly - allows update/commit (false) or read-only (true) access.
      resultHandler - query result handler
      monitor - task monitor
      Throws:
      IOException - if an IO error occurs which was re-thrown by resultHandler
      CancelledException - if task is cancelled