public class PreferCborHandshakeHandler
extends org.springframework.web.socket.server.support.DefaultHandshakeHandler
HandshakeHandler implementation that prefers the CBOR data format.
You can configure this HandshakeHandler by extending the
WampServletConfiguration and overwriting the
WampServletConfiguration.getHandshakeHandler() method.
@Configuration
public class Application extends WampConfiguration {
@Override
protected HandshakeHandler getHandshakeHandler() {
return new PreferCborHandshakeHandler();
}
}
| Constructor and Description |
|---|
PreferCborHandshakeHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
selectProtocol(List<String> requestedProtocols,
org.springframework.web.socket.WebSocketHandler webSocketHandler) |
setServletContextdetermineHandlerSupportedProtocols, determineUser, doHandshake, doStart, doStop, filterRequestedExtensions, getRequestUpgradeStrategy, getSupportedProtocols, getSupportedVersions, handleInvalidConnectHeader, handleInvalidUpgradeHeader, handleWebSocketVersionNotSupported, isRunning, isValidOrigin, isWebSocketVersionSupported, setSupportedProtocols, start, stopCopyright © 2017–2018. All rights reserved.