Package org.vertx.java.core.net.impl

Examples of org.vertx.java.core.net.impl.VertxNetHandler


    connectionMap.put(channel, socket);

    // remove old http handlers and replace the old handler with one that handle plain sockets
    channel.pipeline().remove("httpDecoder");
    channel.pipeline().remove("chunkedWriter");
    channel.pipeline().replace("handler", "handler", new VertxNetHandler(server.vertx, connectionMap) {
      @Override
      public void exceptionCaught(ChannelHandlerContext chctx, Throwable t) throws Exception {
        // remove from the real mapping
        server.connectionMap.remove(channel);
        super.exceptionCaught(chctx, t);
View Full Code Here

TOP

Related Classes of org.vertx.java.core.net.impl.VertxNetHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.