Interface SseRequestResult
- All Known Implementing Classes:
SseRequestResult.HandshakeAccepted, SseRequestResult.HandshakeRejected, SseRequestResult.RequestFailed
public sealed interface SseRequestResult
permits SseRequestResult.HandshakeAccepted, SseRequestResult.HandshakeRejected, SseRequestResult.RequestFailed
Sealed interface used by
Simulator.performSseRequest(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.performSseRequest(Request).static final classRepresents the result of an SSE rejected handshake (explicit rejection; connection closed) when simulated bySimulator.performSseRequest(Request).static final classRepresents the result of an SSE request failure (implicit rejection, e.g. an exception occurred; connection closed) when simulated bySimulator.performSseRequest(Request).