Package burp.api.montoya.ui.contextmenu
Interface MessageEditorHttpRequestResponse
public interface MessageEditorHttpRequestResponse
This class contains information about a user selection of a request or response within a Burp Suite message editor.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
-
Method Summary
Modifier and TypeMethodDescriptionint
This will returnOptional.empty()
if the user has not made a selection.void
setRequest
(HttpRequest request) Update the message editor with the HTTP requestvoid
setResponse
(HttpResponse response) Update the message editor with the HTTP response
-
Method Details
-
selectionContext
MessageEditorHttpRequestResponse.SelectionContext selectionContext()- Returns:
- An
MessageEditorHttpRequestResponse.SelectionContext
which indicates what data has been selected by the user and has focus.
-
selectionOffsets
This will returnOptional.empty()
if the user has not made a selection.- Returns:
- An
Optional
range of indices that indicates the position of the users current selection.
-
caretPosition
int caretPosition()- Returns:
- The index of the position for the carat within the current message editor.
-
requestResponse
HttpRequestResponse requestResponse()- Returns:
- An instance of
HttpRequestResponse
which contains the information about the currently displayed or selected HTTP request/response.
-
setRequest
Update the message editor with the HTTP request- Parameters:
request
- the request to update the editor.
-
setResponse
Update the message editor with the HTTP response- Parameters:
response
- the response to update the editor.
-