Package burp.api.montoya.ui.editor
Interface HttpRequestEditor
- All Superinterfaces:
Editor
Provides extensions with an instance of Burp Suites HTTP request editor to use in their own user interface.
-
Method Summary
Modifier and TypeMethodDescriptionintbooleanThis will returnOptional.empty()if the user has not made a selection.voidsetRequest(HttpRequest request) Display the contents of an HTTP request in the editor.voidsetSearchExpression(String expression) Update the search expression that is shown in the search bar below the editor.
-
Method Details
-
getRequest
HttpRequest getRequest()- Returns:
- an instance of
HttpRequestderived from the contents of the editor.
-
setRequest
Display the contents of an HTTP request in the editor.- Parameters:
request- The HTTP request to be set.
-
setSearchExpression
Update the search expression that is shown in the search bar below the editor.- Specified by:
setSearchExpressionin interfaceEditor- Parameters:
expression- The search expression.
-
isModified
boolean isModified()- Specified by:
isModifiedin interfaceEditor- Returns:
- True if the user has modified the contents of the editor since the last time the content was set programmatically.
-
caretPosition
int caretPosition()- Specified by:
caretPositionin interfaceEditor- Returns:
- The index of the position for the carat within the current message editor.
-
selection
This will returnOptional.empty()if the user has not made a selection. -
uiComponent
Component uiComponent()- Specified by:
uiComponentin interfaceEditor- Returns:
- UI component of the editor, for extensions to add to their own UI.
-