public interface IMessageEditorTab
IMessageEditorTabFactory
must return instances of this
interface, which Burp will use to create custom tabs within its HTTP message
editors.Modifier and Type | Method and Description |
---|---|
byte[] |
getMessage()
This method returns the currently displayed message.
|
byte[] |
getSelectedData()
This method is used to retrieve the data that is currently selected by
the user.
|
java.lang.String |
getTabCaption()
This method returns the caption that should appear on the custom tab when
it is displayed.
|
java.awt.Component |
getUiComponent()
This method returns the component that should be used as the contents of
the custom tab when it is displayed.
|
boolean |
isEnabled(byte[] content,
boolean isRequest)
The hosting editor will invoke this method before it displays a new HTTP
message, so that the custom tab can indicate whether it should be enabled
for that message.
|
boolean |
isModified()
This method is used to determine whether the currently displayed message
has been modified by the user.
|
void |
setMessage(byte[] content,
boolean isRequest)
The hosting editor will invoke this method to display a new message or to
clear the existing message.
|
java.lang.String getTabCaption()
java.awt.Component getUiComponent()
boolean isEnabled(byte[] content, boolean isRequest)
content
- The message that is about to be displayed, or a zero-length
array if the existing message is to be cleared.isRequest
- Indicates whether the message is a request or a
response.true
if the custom tab is able to handle the specified
message, and so will be displayed within the editor. Otherwise, the tab
will be hidden while this message is displayed.void setMessage(byte[] content, boolean isRequest)
true
to a call to
isEnabled()
with the same message details.content
- The message that is to be displayed, or
null
if the tab should clear its contents and disable any
editable controls.isRequest
- Indicates whether the message is a request or a
response.byte[] getMessage()
boolean isModified()
getMessage()
before calling this method, so any pending
edits should be completed within
getMessage()
.true
if the user has modified the current message since it
was first displayed.byte[] getSelectedData()
null
if no selection is currently made.