Package burp.api.montoya.core
Interface Annotations
public interface Annotations
Annotations stored with requests and responses in Burp Suite.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Annotations
Create a new empty annotations.static Annotations
annotations
(HighlightColor highlightColor) Create a new annotations with a highlight color.static Annotations
annotations
(String notes) Create a new annotations with notes.static Annotations
annotations
(String notes, HighlightColor highlightColor) Create a new annotations with notes and a highlight color.boolean
boolean
hasNotes()
notes()
void
setHighlightColor
(HighlightColor highlightColor) Set (mutate) the current annotations highlight color valuevoid
Set (mutate) the current annotations notes valuewithHighlightColor
(HighlightColor highlightColor) Create a copy of the annotations with a new highlight color.Create a copy of the annotations with new notes.
-
Method Details
-
notes
String notes()- Returns:
- the notes
-
hasNotes
boolean hasNotes()- Returns:
- True if there are any notes for this HTTP request and response.
-
hasHighlightColor
boolean hasHighlightColor()- Returns:
- True if there is a highlight color for this HTTP request and response.
-
setNotes
Set (mutate) the current annotations notes value- Parameters:
notes
- the notes to set on the current annotations
-
highlightColor
HighlightColor highlightColor()- Returns:
- the highlight color;
-
setHighlightColor
Set (mutate) the current annotations highlight color value- Parameters:
highlightColor
- the highlight color to set on the current annotations
-
withNotes
Create a copy of the annotations with new notes.- Parameters:
notes
- The new notes.- Returns:
- The new annotations.
-
withHighlightColor
Create a copy of the annotations with a new highlight color.- Parameters:
highlightColor
- The new highlight color.- Returns:
- The new annotations.
-
annotations
-
annotations
Create a new annotations with notes.- Parameters:
notes
- The notes of the annotations- Returns:
- The annotations.
-
annotations
Create a new annotations with a highlight color.- Parameters:
highlightColor
- The highlight color of the annotations- Returns:
- The annotations.
-
annotations
Create a new annotations with notes and a highlight color.- Parameters:
notes
- The notes of the annotationshighlightColor
- The highlight color of the annotations- Returns:
- The annotations.
-