39 lines
1.5 KiB
Java
39 lines
1.5 KiB
Java
package burp;
|
|
|
|
/*
|
|
* @(#)IHttpListener.java
|
|
*
|
|
* Copyright PortSwigger Ltd. All rights reserved.
|
|
*
|
|
* This code may be used to extend the functionality of Burp Suite Community Edition
|
|
* and Burp Suite Professional, provided that this usage does not violate the
|
|
* license terms for those products.
|
|
*/
|
|
/**
|
|
* Extensions can implement this interface and then call
|
|
* <code>IBurpExtenderCallbacks.registerHttpListener()</code> to register an
|
|
* HTTP listener. The listener will be notified of requests and responses made
|
|
* by any Burp tool. Extensions can perform custom analysis or modification of
|
|
* these messages by registering an HTTP listener.
|
|
*/
|
|
public interface IHttpListener
|
|
{
|
|
/**
|
|
* This method is invoked when an HTTP request is about to be issued, and
|
|
* when an HTTP response has been received.
|
|
*
|
|
* @param toolFlag A flag indicating the Burp tool that issued the request.
|
|
* Burp tool flags are defined in the
|
|
* <code>IBurpExtenderCallbacks</code> interface.
|
|
* @param messageIsRequest Flags whether the method is being invoked for a
|
|
* request or response.
|
|
* @param messageInfo Details of the request / response to be processed.
|
|
* Extensions can call the setter methods on this object to update the
|
|
* current message and so modify Burp's behavior.
|
|
*/
|
|
void processHttpMessage(
|
|
int toolFlag,
|
|
boolean messageIsRequest,
|
|
IHttpRequestResponse messageInfo);
|
|
}
|