Interface ProxyWebSocketMessage
- All Superinterfaces:
WebSocketMessage
WebSocket message intercepted by the Proxy.
-
Method Summary
Modifier and TypeMethodDescriptionThis method retrieves the annotations for the message.booleanSearches the data in the web socket message for the specified search term.booleanSearches the data in the web socket message for the specified regular expression.intid()Returns the ID of this message within the WebSocket history.intReturns the proxy listener port used for the web socket message.payload()time()int
-
Method Details
-
annotations
Annotations annotations()This method retrieves the annotations for the message.- Specified by:
annotationsin interfaceWebSocketMessage- Returns:
- The
Annotationsfor the message.
-
direction
Direction direction()- Specified by:
directionin interfaceWebSocketMessage- Returns:
- The direction of the message.
-
payload
ByteArray payload()- Specified by:
payloadin interfaceWebSocketMessage- Returns:
- WebSocket payload.
-
upgradeRequest
HttpRequest upgradeRequest()- Specified by:
upgradeRequestin interfaceWebSocketMessage- Returns:
- The
HttpRequestused to create the WebSocket.
-
webSocketId
int webSocketId()- Returns:
- The ID for the web socket connection that this message is linked to.
-
time
ZonedDateTime time()- Returns:
- An instance of
ZonedDateTimeindicating when the message was sent.
-
editedPayload
ByteArray editedPayload()- Returns:
- The payload after modification from tools and extensions.
nullif the message has not been edited.
-
listenerPort
int listenerPort()Returns the proxy listener port used for the web socket message.- Returns:
- the port number used by the proxy listener
-
id
int id()Returns the ID of this message within the WebSocket history.- Returns:
- the message ID
-
contains
Searches the data in the web socket message for the specified search term.- Parameters:
searchTerm- The value to be searched for.caseSensitive- Flags whether the search is case-sensitive.- Returns:
- True if the search term is found.
-
contains
Searches the data in the web socket message for the specified regular expression.- Parameters:
pattern- The regular expression to be searched for.- Returns:
- True if the pattern is matched.
-