Package burp.api.montoya.ui.contextmenu
Interface ContextMenuEvent
- All Superinterfaces:
ComponentEvent,InvocationSource,ToolSource
Provides useful information when generating context menu items from a
ContextMenuItemsProvider.-
Method Summary
Modifier and TypeMethodDescriptionThis method can be used to retrieve the native Java input event that was the trigger for the context menu invocation.booleanisFrom(InvocationType... invocationType) A helper method to allow the extension to ask if the context is within a set of locations.booleanisFromTool(ToolType... toolType) Determine whether this tool source is from a specified tool.This method can be used to retrieve details of the currently selected HTTP request/response when the context menu was invoked.This method can be used to retrieve details of the Scanner issues that were selected by the user when the context menu was invoked.This method can be used to retrieve details of the currently selected HTTP request/response pair that was selected by the user when the context menu was invoked.toolType()
-
Method Details
-
messageEditorRequestResponse
Optional<MessageEditorHttpRequestResponse> messageEditorRequestResponse()This method can be used to retrieve details of the currently selected HTTP request/response when the context menu was invoked.- Returns:
- an
Optionaldescribing the currently selected request response with selection metadata.
-
selectedRequestResponses
List<HttpRequestResponse> selectedRequestResponses()This method can be used to retrieve details of the currently selected HTTP request/response pair that was selected by the user when the context menu was invoked. This will return an empty list if the user has not made a selection.- Returns:
- A list of request responses that have been selected by the user.
-
selectedIssues
List<AuditIssue> selectedIssues()This method can be used to retrieve details of the Scanner issues that were selected by the user when the context menu was invoked. This will return an empty list if no issues are applicable to the invocation.- Returns:
- a List of
AuditIssueobjects representing the items that were shown or selected by the user when the context menu was invoked.
-
toolType
ToolType toolType()- Specified by:
toolTypein interfaceToolSource- Returns:
- the tool type.
-
isFromTool
Determine whether this tool source is from a specified tool.- Specified by:
isFromToolin interfaceToolSource- Parameters:
toolType- The tool types to check.- Returns:
- Returns
trueif this tool source is from any of the specified tool types.
-
inputEvent
InputEvent inputEvent()This method can be used to retrieve the native Java input event that was the trigger for the context menu invocation.- Specified by:
inputEventin interfaceComponentEvent- Returns:
- The
InputEventthat was the trigger for the context menu invocation.
-
invocationType
InvocationType invocationType()- Specified by:
invocationTypein interfaceInvocationSource- Returns:
- An instance of
InvocationTypewhich provides the current location of the context menu being invoked.
-