Package ghidra.framework.protocol.ghidra
Interface GhidraURLResultHandler
- All Known Implementing Classes:
AcceptUrlContentTask
,ContentTypeQueryTask
,GhidraURLQueryTask
,GhidraURLResultHandlerAdapter
public interface GhidraURLResultHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleError
(String title, String message, URL url, IOException cause) Handle error which occurs during query operation.default void
Handle authorization error.void
processResult
(DomainFile domainFile, URL url, TaskMonitor monitor) Process the specifieddomainFile
query result.void
processResult
(DomainFolder domainFolder, URL url, TaskMonitor monitor) Process the specifieddomainFolder
query result.
-
Method Details
-
processResult
void processResult(DomainFile domainFile, URL url, TaskMonitor monitor) throws IOException, CancelledException Process the specifieddomainFile
query result. Dissemination of thedomainFile
instance 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 thedomainFile
instance will become invalid.- Parameters:
domainFile
-DomainFile
to which the URL refers.url
- URL which was used to retrieve the specifieddomainFile
monitor
- 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 specifieddomainFolder
query result. Dissemination of thedomainFolder
instance 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 thedomainFolder
instance will become invalid.- Parameters:
domainFolder
-DomainFolder
to which the URL refers.url
- URL which was used to retrieve the specifieddomainFolder
monitor
- 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
-