Class SseRequestResult.HandshakeRejected
java.lang.Object
com.soklet.SseRequestResult.HandshakeRejected
- All Implemented Interfaces:
SseRequestResult
- Enclosing interface:
SseRequestResult
@ThreadSafe
public static final class SseRequestResult.HandshakeRejected
extends Object
implements SseRequestResult
Represents the result of an SSE rejected handshake (explicit rejection; connection closed) when simulated by
Simulator.performSseRequest(Request).
The data provided when the handshake was rejected is available via getSseHandshakeResult(), and the final data sent to the client is available via getHttpRequestResult().
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from interface SseRequestResult
SseRequestResult.HandshakeAccepted, SseRequestResult.HandshakeRejected, SseRequestResult.RequestFailed -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe result of the handshake, as written back to the client (the connection is then closed).Gets the data provided when the handshake was explicitly rejected by theSseEventSource-annotated Resource Method.inthashCode()toString()
-
Method Details
-
getSseHandshakeResult
Gets the data provided when the handshake was explicitly rejected by theSseEventSource-annotated Resource Method.- Returns:
- the data provided when the handshake was rejected
-
getHttpRequestResult
The result of the handshake, as written back to the client (the connection is then closed).- Returns:
- the result of this request
-
toString
-
equals
-
hashCode
-