Replaced deprecated 'sendUnsupportedWebSocketVersionResponse()' with 'sendUnsupportedVersionResponse()'
This commit is contained in:
parent
4ee81d9235
commit
a389d69ba8
@ -60,7 +60,7 @@ class WebSocketServerProtocolHandshakeHandler extends ChannelHandlerAdapter {
|
|||||||
getWebSocketLocation(ctx.pipeline(), req, websocketPath), subprotocols, allowExtensions);
|
getWebSocketLocation(ctx.pipeline(), req, websocketPath), subprotocols, allowExtensions);
|
||||||
final WebSocketServerHandshaker handshaker = wsFactory.newHandshaker(req);
|
final WebSocketServerHandshaker handshaker = wsFactory.newHandshaker(req);
|
||||||
if (handshaker == null) {
|
if (handshaker == null) {
|
||||||
WebSocketServerHandshakerFactory.sendUnsupportedWebSocketVersionResponse(ctx.channel());
|
WebSocketServerHandshakerFactory.sendUnsupportedVersionResponse(ctx.channel());
|
||||||
} else {
|
} else {
|
||||||
final ChannelFuture handshakeFuture = handshaker.handshake(ctx.channel(), req);
|
final ChannelFuture handshakeFuture = handshaker.handshake(ctx.channel(), req);
|
||||||
handshakeFuture.addListener(new ChannelFutureListener() {
|
handshakeFuture.addListener(new ChannelFutureListener() {
|
||||||
|
@ -101,7 +101,7 @@ public class WebSocketServerHandler extends SimpleChannelInboundHandler<Object>
|
|||||||
getWebSocketLocation(req), null, false);
|
getWebSocketLocation(req), null, false);
|
||||||
handshaker = wsFactory.newHandshaker(req);
|
handshaker = wsFactory.newHandshaker(req);
|
||||||
if (handshaker == null) {
|
if (handshaker == null) {
|
||||||
WebSocketServerHandshakerFactory.sendUnsupportedWebSocketVersionResponse(ctx.channel());
|
WebSocketServerHandshakerFactory.sendUnsupportedVersionResponse(ctx.channel());
|
||||||
} else {
|
} else {
|
||||||
handshaker.handshake(ctx.channel(), req);
|
handshaker.handshake(ctx.channel(), req);
|
||||||
}
|
}
|
||||||
|
@ -98,7 +98,7 @@ public class WebSocketSslServerHandler extends SimpleChannelInboundHandler<Objec
|
|||||||
getWebSocketLocation(req), null, false);
|
getWebSocketLocation(req), null, false);
|
||||||
handshaker = wsFactory.newHandshaker(req);
|
handshaker = wsFactory.newHandshaker(req);
|
||||||
if (handshaker == null) {
|
if (handshaker == null) {
|
||||||
WebSocketServerHandshakerFactory.sendUnsupportedWebSocketVersionResponse(ctx.channel());
|
WebSocketServerHandshakerFactory.sendUnsupportedVersionResponse(ctx.channel());
|
||||||
} else {
|
} else {
|
||||||
handshaker.handshake(ctx.channel(), req);
|
handshaker.handshake(ctx.channel(), req);
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ public class AutobahnServerHandler extends ChannelHandlerAdapter {
|
|||||||
getWebSocketLocation(req), null, false, Integer.MAX_VALUE);
|
getWebSocketLocation(req), null, false, Integer.MAX_VALUE);
|
||||||
handshaker = wsFactory.newHandshaker(req);
|
handshaker = wsFactory.newHandshaker(req);
|
||||||
if (handshaker == null) {
|
if (handshaker == null) {
|
||||||
WebSocketServerHandshakerFactory.sendUnsupportedWebSocketVersionResponse(ctx.channel());
|
WebSocketServerHandshakerFactory.sendUnsupportedVersionResponse(ctx.channel());
|
||||||
} else {
|
} else {
|
||||||
handshaker.handshake(ctx.channel(), req);
|
handshaker.handshake(ctx.channel(), req);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user