Class: Buby::MessageEditorTabFactory Abstract

Inherits:
Object
  • Object
show all
Includes:
Java::Burp::IMessageEditorTabFactory
Defined in:
lib/buby/message_editor_tab_factory.rb

Overview

This class is abstract.

Extensions can implement this interface and then call #registerMessageEditorTabFactory to register a factory for custom message editor tabs. This allows extensions to provide custom rendering or editing of HTTP messages, within Burp’s own HTTP editor.

Instance Method Summary collapse

Instance Method Details

#createNewInstance(controller, editable) ⇒ IMessageEditorTab

This method is abstract.

subclass and call super

Burp will call this method once for each HTTP message editor, and the factory should provide a new instance of an IMessageEditorTab object.

Parameters:

  • controller (IMessageEditorController)

    An object which the new tab can query to retrieve details about the currently displayed message. This may be nil for extension-invoked message editors where the extension has not provided an editor controller.

  • editable (Boolean)

    Indicates whether the hosting editor is editable or read-only.

Returns:

  • (IMessageEditorTab)

    A new tab for use within the message editor.



23
24
25
26
# File 'lib/buby/message_editor_tab_factory.rb', line 23

def createNewInstance(controller, editable)
  Buby::Implants::MessageEditorController.implant controller
  nil
end