Class ServerSentEventRequestResult.HandshakeRejected
java.lang.Object
com.soklet.ServerSentEventRequestResult.HandshakeRejected
- All Implemented Interfaces:
ServerSentEventRequestResult
- Enclosing interface:
ServerSentEventRequestResult
@ThreadSafe
public static final class ServerSentEventRequestResult.HandshakeRejected
extends Object
implements ServerSentEventRequestResult
Represents the result of an SSE rejected handshake (explicit rejection; connection closed) when simulated by
Simulator.performServerSentEventRequest(Request).
The data provided when the handshake was rejected is available via getHandshakeResult(), and the final data sent to the client is available via getRequestResult().
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServerSentEventRequestResult
ServerSentEventRequestResult.HandshakeAccepted, ServerSentEventRequestResult.HandshakeRejected, ServerSentEventRequestResult.RequestFailed -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the data provided when the handshake was explicitly rejected by theServerSentEventSource-annotated Resource Method.The result of the handshake, as written back to the client (the connection is then closed).inthashCode()toString()
-
Method Details
-
getHandshakeResult
Gets the data provided when the handshake was explicitly rejected by theServerSentEventSource-annotated Resource Method.- Returns:
- the data provided when the handshake was rejected
-
getRequestResult
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
-