Package lexfo.scalpel
Class ScalpelEditorProvider
java.lang.Object
lexfo.scalpel.ScalpelEditorProvider
- All Implemented Interfaces:
HttpRequestEditorProvider
,HttpResponseEditorProvider
public class ScalpelEditorProvider
extends Object
implements HttpRequestEditorProvider, HttpResponseEditorProvider
Provides a new ScalpelProvidedEditor object for editing HTTP requests or responses.
Calls Python scripts to initialize the editor and update the requests or responses.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MontoyaApi
The MontoyaApi object used to interact with Burp Suite.private LinkedList<WeakReference<ScalpelEditorTabbedPane>>
private final ScalpelExecutor
The ScalpelExecutor object used to execute Python scripts. -
Constructor Summary
ConstructorDescriptionScalpelEditorProvider
(MontoyaApi API, ScalpelExecutor executor) Constructs a new ScalpelEditorProvider object with the specified MontoyaApi object and ScalpelExecutor object. -
Method Summary
Modifier and TypeMethodDescriptionprivate void
provideHttpRequestEditor
(EditorCreationContext creationContext) Provides a new ExtensionProvidedHttpRequestEditor object for editing an HTTP request.provideHttpResponseEditor
(EditorCreationContext creationContext) Provides a new ExtensionProvidedHttpResponseEditor object for editing an HTTP response.void
-
Field Details
-
API
The MontoyaApi object used to interact with Burp Suite. -
executor
The ScalpelExecutor object used to execute Python scripts. -
editorsRefs
-
-
Constructor Details
-
ScalpelEditorProvider
Constructs a new ScalpelEditorProvider object with the specified MontoyaApi object and ScalpelExecutor object.- Parameters:
API
- The MontoyaApi object to use.executor
- The ScalpelExecutor object to use.
-
-
Method Details
-
provideHttpRequestEditor
public ExtensionProvidedHttpRequestEditor provideHttpRequestEditor(EditorCreationContext creationContext) Provides a new ExtensionProvidedHttpRequestEditor object for editing an HTTP request.- Specified by:
provideHttpRequestEditor
in interfaceHttpRequestEditorProvider
- Parameters:
creationContext
- The EditorCreationContext object containing information about the request editor.- Returns:
- A new ScalpelProvidedEditor object for editing the HTTP request.
-
provideHttpResponseEditor
public ExtensionProvidedHttpResponseEditor provideHttpResponseEditor(EditorCreationContext creationContext) Provides a new ExtensionProvidedHttpResponseEditor object for editing an HTTP response.- Specified by:
provideHttpResponseEditor
in interfaceHttpResponseEditorProvider
- Parameters:
creationContext
- The EditorCreationContext object containing information about the response editor.- Returns:
- A new ScalpelProvidedEditor object for editing the HTTP response.
-
forceGarbageCollection
private void forceGarbageCollection() -
resetEditors
public void resetEditors() -
resetEditorsAsync
-