public interface WebSocketUpgradeResponse
chosenSubprotocol
method is valid, or if invalid, the invalidationReason
method
can be used to find out why the upgrade failed.Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
chosenSubprotocol()
If valid, returns
Some(subprotocol) (if any was requested), or None if none was
chosen or offered. |
java.lang.String |
invalidationReason()
If invalid, the reason why the server's upgrade response could not be accepted.
|
boolean |
isValid() |
HttpResponse |
response()
Returns the response object as received from the server for further inspection.
|
boolean isValid()
HttpResponse response()
java.util.Optional<java.lang.String> chosenSubprotocol()
Some(subprotocol)
(if any was requested), or None
if none was
chosen or offered.java.lang.String invalidationReason()