Class ServerSentEventRequestResult.HandshakeAccepted

java.lang.Object
com.soklet.ServerSentEventRequestResult.HandshakeAccepted
All Implemented Interfaces:
ServerSentEventRequestResult
Enclosing interface:
ServerSentEventRequestResult

Represents the result of an SSE accepted handshake (connection stays open) when simulated by Simulator.performServerSentEventRequest(Request).

The registerEventConsumer(Consumer) and registerCommentConsumer(Consumer) methods can be used to "listen" for Server-Sent Events and Comments, respectively.

The data provided when the handshake was accepted is available via getHandshakeResult(), and the final data sent to the client is available via getRequestResult().

Author:
Mark Allen