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 Burps various editors and applying themes to custom components.
  • Method Details

    • registerSuiteTab

      Registration registerSuiteTab(String title, Component component)
      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 Registration of the custom suite tab.
    • registerContextMenuItemsProvider

      Registration registerContextMenuItemsProvider(ContextMenuItemsProvider provider)
      This method can be used to register a provider of custom context menu items.
      Parameters:
      provider - The provider to register.
      Returns:
      A Registration of the context menu item provider.
    • registerHttpRequestEditorProvider

      Registration registerHttpRequestEditorProvider(HttpRequestEditorProvider provider)
      This method can be used to register a provider of custom HTTP request editors.
      Parameters:
      provider - The provider to register.
      Returns:
      A Registration of the HTTP request editor provider.
    • registerHttpResponseEditorProvider

      Registration registerHttpResponseEditorProvider(HttpResponseEditorProvider provider)
      This method can be used to register a provider of custom HTTP response editors.
      Parameters:
      provider - The provider to register.
      Returns:
      A Registration of the HTTP response editor provider.
    • registerWebSocketMessageEditorProvider

      Registration registerWebSocketMessageEditorProvider(WebSocketMessageEditorProvider provider)
      This method can be used to register a provider of custom Web Socket message editors.
      Parameters:
      provider - The provider to register.
      Returns:
      A Registration of the Web Socket message editor provider.
    • createRawEditor

      RawEditor createRawEditor(EditorOptions... options)
      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 RawEditor interface.
    • createWebSocketMessageEditor

      WebSocketMessageEditor createWebSocketMessageEditor(EditorOptions... options)
      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 WebSocketMessageEditor interface.
    • createHttpRequestEditor

      HttpRequestEditor createHttpRequestEditor(EditorOptions... options)
      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 HttpRequestEditor interface.
    • createHttpResponseEditor

      HttpResponseEditor createHttpResponseEditor(EditorOptions... options)
      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 HttpResponseEditor interface.
    • applyThemeToComponent

      void applyThemeToComponent(Component component)
      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

      Theme currentTheme()
      Identify the theme currently being used.
      Returns:
      The current Theme
    • currentEditorFont

      Font currentEditorFont()
      Access the message editor's font type and size.
      Returns:
      The current Font, as specified in the Settings dialog under the HTTP message display setting.
    • currentDisplayFont

      Font currentDisplayFont()
      Access Burp's font size.
      Returns:
      The current Font, as specified in the Settings dialog under the Appearance setting.
    • swingUtils

      SwingUtils swingUtils()
      Returns:
      An instance of SwingUtils