Package burp.api.montoya.ui.contextmenu
Interface MessageEditorHttpRequestResponse
-
public interface MessageEditorHttpRequestResponseThis class contains information about a user selection of a request or response within a Burp Suite message editor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMessageEditorHttpRequestResponse.SelectionContext
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcaretPosition()HttpRequestResponsegetRequestResponse()MessageEditorHttpRequestResponse.SelectionContextselectionContext()java.util.Optional<Range>selectionOffsets()This will returnOptional.empty()if the user has not made a selection.voidsetMessageAnnotations(Annotations annotations)Update the message editor with the annotationsvoidsetRequest(HttpRequest request)Update the message editor with the HTTP requestvoidsetResponse(HttpResponse response)Update the message editor with the HTTP response
-
-
-
Method Detail
-
selectionContext
MessageEditorHttpRequestResponse.SelectionContext selectionContext()
- Returns:
- An
MessageEditorHttpRequestResponse.SelectionContextwhich indicates what data has been selected by the user and has focus.
-
selectionOffsets
java.util.Optional<Range> selectionOffsets()
This will returnOptional.empty()if the user has not made a selection.- Returns:
- An
Optionalrange 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.
-
getRequestResponse
HttpRequestResponse getRequestResponse()
- Returns:
- An instance of
HttpRequestResponsewhich contains the information about the currently displayed or selected HTTP request/response.
-
setRequest
void setRequest(HttpRequest request)
Update the message editor with the HTTP request- Parameters:
request- the request to update the editor.
-
setResponse
void setResponse(HttpResponse response)
Update the message editor with the HTTP response- Parameters:
response- the response to update the editor.
-
setMessageAnnotations
void setMessageAnnotations(Annotations annotations)
Update the message editor with the annotations- Parameters:
annotations- the annotations to update.
-
-