Package burp.api.montoya.proxy
Interface Proxy
-
public interface ProxyThis interface provides access to the functionality of the Proxy tool.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voiddisableIntercept()This method disables the master interception for Burp Proxy.voidenableIntercept()This method enables the master interception for Burp Proxy.default java.util.List<ProxyRequestResponse>history()This method returns details of all items in the Proxy history.java.util.List<ProxyRequestResponse>history(ProxyHistoryFilter filter)This method returns details of items in the Proxy history based on the filter.RegistrationregisterRequestHandler(ProxyHttpRequestHandler handler)This method is used to register a handler which will be notified of requests being processed by the Proxy tool.RegistrationregisterResponseHandler(ProxyHttpResponseHandler handler)This method is used to register a handler which will be notified of responses being processed by the Proxy tool.RegistrationregisterWebSocketCreationHandler(ProxyWebSocketCreationHandler handler)This method is used to register a handler which will be invoked whenever a WebSocket is created by the Proxy tool.
-
-
-
Method Detail
-
enableIntercept
void enableIntercept()
This method enables the master interception for Burp Proxy.
-
disableIntercept
void disableIntercept()
This method disables the master interception for Burp Proxy.
-
history
default java.util.List<ProxyRequestResponse> history()
This method returns details of all items in the Proxy history.- Returns:
- The list of all the
ProxyRequestResponseitems in the Proxy history.
-
history
java.util.List<ProxyRequestResponse> history(ProxyHistoryFilter filter)
This method returns details of items in the Proxy history based on the filter.- Parameters:
filter- An instance ofProxyHistoryFilterthat can be used to filter the items in the Proxy history.- Returns:
- The list of
ProxyRequestResponseitems in the Proxy history that matched the filter.
-
registerRequestHandler
Registration registerRequestHandler(ProxyHttpRequestHandler handler)
This method is used to register a handler which will be notified of requests being processed by the Proxy tool. Extensions can perform custom analysis or modification of these messages, and control in-UI message interception.- Parameters:
handler- An object created by the extension that implements theProxyHttpRequestHandlerinterface.- Returns:
- The
Registrationfor the handler.
-
registerResponseHandler
Registration registerResponseHandler(ProxyHttpResponseHandler handler)
This method is used to register a handler which will be notified of responses being processed by the Proxy tool. Extensions can perform custom analysis or modification of these messages, and control in-UI message interception.- Parameters:
handler- An object created by the extension that implements theProxyHttpResponseHandlerinterface.- Returns:
- The
Registrationfor the handler.
-
registerWebSocketCreationHandler
Registration registerWebSocketCreationHandler(ProxyWebSocketCreationHandler handler)
This method is used to register a handler which will be invoked whenever a WebSocket is created by the Proxy tool.- Parameters:
handler- An object created by the extension that implementsProxyWebSocketCreationHandlerinterface.- Returns:
- The
Registrationfor the handler.
-
-