Example usage for io.netty.handler.codec.http.websocketx WebSocketHandshakeException WebSocketHandshakeException

List of usage examples for io.netty.handler.codec.http.websocketx WebSocketHandshakeException WebSocketHandshakeException

Introduction

In this page you can find the example usage for io.netty.handler.codec.http.websocketx WebSocketHandshakeException WebSocketHandshakeException.

Prototype

public WebSocketHandshakeException(String s) 

Source Link

Usage

From source file:io.vertx.core.http.impl.WebSocketHandshakeInboundHandler.java

License:Open Source License

@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
    super.channelInactive(ctx);
    // if still handshaking this means we not got any response back from the server and so need to notify the client
    // about it as otherwise the client would never been notified.
    wsHandler.handle(Future/*from  w ww .  j av a 2 s.  c  o  m*/
            .failedFuture(new WebSocketHandshakeException("Connection closed while handshake in process")));
}