Interface UserInterface
public interface UserInterface
This interface gives you access to various user-interface-related features.
Such as registering your own User Interface providers, creating instances of Burp's various editors
and applying themes to custom components.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyThemeToComponent(Component component) Customize UI components in line with Burp's UI style, including font size, colors, table line spacing, etc.createHttpRequestEditor(EditorOptions... options) Create a new instance of Burp's HTTP request editor, for the extension to use in its own UI.createHttpResponseEditor(EditorOptions... options) Create a new instance of Burp's HTTP response editor, for the extension to use in its own UI.createRawEditor(EditorOptions... options) Create a new instance of Burp's plain text editor, for the extension to use in its own UI.createWebSocketMessageEditor(EditorOptions... options) Create a new instance of Burp's WebSocket message editor, for the extension to use in its own UI.Access Burp's font size.Access the message editor's font type and size.Identify the theme currently being used.menuBar()voidOpen Burp's Settings dialog.This method can be used to register a provider of custom context menu items.registerHotKeyHandler(HotKeyContext context, String hotKey, HotKeyHandler handler) This method can be used to register hotkey handlers.This method can be used to register a provider of custom HTTP request editors.This method can be used to register a provider of custom HTTP response editors.registerSettingsPanel(SettingsPanel settingsPanel) This method can be used to register a settings panel within Burp's Settings dialog.registerSuiteTab(String title, Component component) Add a custom tab to the main Burp Suite window.This method can be used to register a provider of custom Web Socket message editors.
-
Method Details
-
registerSuiteTab
Add a custom tab to the main Burp Suite window.- Parameters:
title- The text to be displayed in the tab heading.component- The component that will be rendered within the custom tab.- Returns:
- A
Registrationof the custom suite tab.
-
registerHttpRequestEditorProvider
This method can be used to register a provider of custom HTTP request editors.- Parameters:
provider- The provider to register.- Returns:
- A
Registrationof the HTTP request editor provider.
-
registerHttpResponseEditorProvider
This method can be used to register a provider of custom HTTP response editors.- Parameters:
provider- The provider to register.- Returns:
- A
Registrationof the HTTP response editor provider.
-
registerWebSocketMessageEditorProvider
This method can be used to register a provider of custom Web Socket message editors.- Parameters:
provider- The provider to register.- Returns:
- A
Registrationof the Web Socket message editor provider.
-
registerHotKeyHandler
This method can be used to register hotkey handlers. Hotkeys are defined in the same format as within Burp's Settings.- Parameters:
context- contexthotKey- hotkeyhandler- the handler to register- Returns:
- A
Registrationof the Hot Key handler.
-
registerSettingsPanel
This method can be used to register a settings panel within Burp's Settings dialog.- Parameters:
settingsPanel- the settings panel to register- Returns:
- A
Registrationof the settings panel.
-
createRawEditor
Create a new instance of Burp's plain text editor, for the extension to use in its own UI.- Parameters:
options- Optional options to apply to the editor.- Returns:
- An instance of the
RawEditorinterface.
-
createWebSocketMessageEditor
Create a new instance of Burp's WebSocket message editor, for the extension to use in its own UI.- Parameters:
options- Optional options to apply to the editor.- Returns:
- An instance of the
WebSocketMessageEditorinterface.
-
createHttpRequestEditor
Create a new instance of Burp's HTTP request editor, for the extension to use in its own UI.- Parameters:
options- Optional options to apply to the editor.- Returns:
- An instance of the
HttpRequestEditorinterface.
-
createHttpResponseEditor
Create a new instance of Burp's HTTP response editor, for the extension to use in its own UI.- Parameters:
options- Optional options to apply to the editor.- Returns:
- An instance of the
HttpResponseEditorinterface.
-
openSettingsWindow
void openSettingsWindow()Open Burp's Settings dialog. If a customSettingsPanelhas been registered, it is selected automatically. -
applyThemeToComponent
Customize UI components in line with Burp's UI style, including font size, colors, table line spacing, etc. The action is performed recursively on any child components of the passed-in component.- Parameters:
component- The component to be customized.
-
currentTheme
-
currentEditorFont
-
currentDisplayFont
-
swingUtils
SwingUtils swingUtils()- Returns:
- An instance of
SwingUtils