Package ghidra.framework.protocol.ghidra
Interface GhidraURLResultHandler
- All Known Implementing Classes:
AcceptUrlContentTask,ContentTypeQueryTask,GhidraURLQueryTask,GhidraURLResultHandlerAdapter
public interface GhidraURLResultHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleError(String title, String message, URL url, IOException cause) Handle error which occurs during query operation.default voidHandle authorization error.voidprocessResult(DomainFile domainFile, URL url, TaskMonitor monitor) Process the specifieddomainFilequery result.voidprocessResult(DomainFolder domainFolder, URL url, TaskMonitor monitor) Process the specifieddomainFolderquery result.
-
Method Details
-
processResult
void processResult(DomainFile domainFile, URL url, TaskMonitor monitor) throws IOException, CancelledException Process the specifieddomainFilequery result. Dissemination of thedomainFileinstance should be restricted and any use of it completed before the call to this method returns. Upon return from this method call the underlying connection will be closed and at which time thedomainFileinstance will become invalid.- Parameters:
domainFile-DomainFileto which the URL refers.url- URL which was used to retrieve the specifieddomainFilemonitor- task monitor- Throws:
IOException- if an IO error occursCancelledException- if task is cancelled
-
processResult
void processResult(DomainFolder domainFolder, URL url, TaskMonitor monitor) throws IOException, CancelledException Process the specifieddomainFolderquery result. Dissemination of thedomainFolderinstance should be restricted and any use of it completed before the call to this method returns. Upon return from this method call the underlying connection will be closed and at which time thedomainFolderinstance will become invalid.- Parameters:
domainFolder-DomainFolderto which the URL refers.url- URL which was used to retrieve the specifieddomainFoldermonitor- task monitor- Throws:
IOException- if an IO error occursCancelledException- if task is cancelled
-
handleError
Handle error which occurs during query operation.- Parameters:
title- error titlemessage- error detailurl- URL which was used for querycause- cause of error (may be null)- Throws:
IOException- may be thrown if handler decides to propogate error
-
handleUnauthorizedAccess
Handle authorization error. This condition is generally logged and user notified via GUI during connection processing. This method does not do anything by default but is provided to flag failure if needed sincehandleError(String, String, URL, IOException)will not be invoked.- Parameters:
url- connection URL- Throws:
IOException- may be thrown if handler decides to propogate error
-