Interface ProxyMessageHandler
public interface ProxyMessageHandler
This interface allows an extension to be notified when messages are sent or received via the proxy WebSocket, or it has been closed.
-
Method Summary
Modifier and TypeMethodDescriptionhandleBinaryMessageReceived(InterceptedBinaryMessage interceptedBinaryMessage) Invoked when a binary message is received from either the client or server.handleBinaryMessageToBeSent(InterceptedBinaryMessage interceptedBinaryMessage) Invoked when a binary message is about to be sent to either the client or server.handleTextMessageReceived(InterceptedTextMessage interceptedTextMessage) Invoked when a text message is received from either the client or server.handleTextMessageToBeSent(InterceptedTextMessage interceptedTextMessage) Invoked when a text message is about to be sent to either the client or server.default voidonClose()Invoked when the WebSocket is closed.
-
Method Details
-
handleTextMessageReceived
Invoked when a text message is received from either the client or server. This gives the extension the ability to modify the message before it is processed by Burp.- Parameters:
interceptedTextMessage- Intercepted text WebSocket message.- Returns:
- The
TextMessageReceivedActioncontaining the required action and text message to be passed through.
-
handleTextMessageToBeSent
Invoked when a text message is about to be sent to either the client or server. This gives the extension the ability to modify the message before it is sent.- Parameters:
interceptedTextMessage- Intercepted text WebSocket message.- Returns:
- The
TextMessageReceivedActioncontaining the required action and text message to be passed through.
-
handleBinaryMessageReceived
BinaryMessageReceivedAction handleBinaryMessageReceived(InterceptedBinaryMessage interceptedBinaryMessage) Invoked when a binary message is received from either the client or server. This gives the extension the ability to modify the message before it is processed by Burp.- Parameters:
interceptedBinaryMessage- Intercepted binary WebSocket message.- Returns:
- The
BinaryMessageReceivedActioncontaining the required action and binary message to be passed through.
-
handleBinaryMessageToBeSent
BinaryMessageToBeSentAction handleBinaryMessageToBeSent(InterceptedBinaryMessage interceptedBinaryMessage) Invoked when a binary message is about to be sent to either the client or server. This gives the extension the ability to modify the message before it is sent.- Parameters:
interceptedBinaryMessage- Intercepted binary WebSocket message.- Returns:
- The
BinaryMessageReceivedActioncontaining the required action and binary message to be passed through.
-
onClose
default void onClose()Invoked when the WebSocket is closed.
-