Interface ServerSentEventRequestResult
- All Known Implementing Classes:
ServerSentEventRequestResult.HandshakeAccepted, ServerSentEventRequestResult.HandshakeRejected, ServerSentEventRequestResult.RequestFailed
public sealed interface ServerSentEventRequestResult
permits ServerSentEventRequestResult.HandshakeAccepted, ServerSentEventRequestResult.HandshakeRejected, ServerSentEventRequestResult.RequestFailed
Sealed interface used by
Simulator.performServerSentEventRequest(Request) during integration tests, which encapsulates the 3 logical outcomes for SSE connections: accepted handshake, rejected handshake, and general request failure.
See https://www.soklet.com/docs/testing#integration-testing for detailed documentation.
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classRepresents the result of an SSE accepted handshake (connection stays open) when simulated bySimulator.performServerSentEventRequest(Request).static final classRepresents the result of an SSE rejected handshake (explicit rejection; connection closed) when simulated bySimulator.performServerSentEventRequest(Request).static final classRepresents the result of an SSE request failure (implicit rejection, e.g. an exception occurred; connection closed) when simulated bySimulator.performServerSentEventRequest(Request).