Interface TextMessageReceivedAction
public interface TextMessageReceivedAction
Extensions can implement this interface when returning a text message from
ProxyMessageHandler.handleTextMessageReceived(InterceptedTextMessage).-
Method Summary
Modifier and TypeMethodDescriptionaction()static TextMessageReceivedActioncontinueWith(TextMessage message) Build a text WebSocket message to follow the current interception rules to determine the appropriate action to take for the message.static TextMessageReceivedActioncontinueWith(String payload) Build a text WebSocket message to follow the current interception rules to determine the appropriate action to take for the message.static TextMessageReceivedActiondoNotIntercept(TextMessage message) Build a text WebSocket message to continue within the Proxy without interception.static TextMessageReceivedActiondoNotIntercept(String payload) Build a text WebSocket message to continue within the Proxy without interception.static TextMessageReceivedActiondrop()Build a text WebSocket message to be dropped.static TextMessageReceivedActionintercept(TextMessage message) Build a text WebSocket message to be intercepted within the Proxy.static TextMessageReceivedActionBuild a text WebSocket message to be intercepted within the Proxy.payload()
-
Method Details
-
action
MessageReceivedAction action()- Returns:
- The action associated with this message.
-
payload
String payload()- Returns:
- The payload of this message.
-
continueWith
Build a text WebSocket message to follow the current interception rules to determine the appropriate action to take for the message.- Parameters:
payload- The text message payload.- Returns:
- The
TextMessageReceivedActionthat allows user rules to be followed.
-
continueWith
Build a text WebSocket message to follow the current interception rules to determine the appropriate action to take for the message.- Parameters:
message- The text message.- Returns:
- The
TextMessageReceivedActionthat allows user rules to be followed.
-
intercept
Build a text WebSocket message to be intercepted within the Proxy.- Parameters:
payload- The text message payload.- Returns:
- The message.
-
intercept
Build a text WebSocket message to be intercepted within the Proxy.- Parameters:
message- The text message.- Returns:
- The message.
-
doNotIntercept
Build a text WebSocket message to continue within the Proxy without interception.- Parameters:
payload- The text message payload.- Returns:
- The message.
-
doNotIntercept
Build a text WebSocket message to continue within the Proxy without interception.- Parameters:
message- The text message payload.- Returns:
- The message.
-
drop
Build a text WebSocket message to be dropped.- Returns:
- The message to be dropped.
-