org.mockserver.client.netty
Class HttpClientConnectionHandler

java.lang.Object
  extended by io.netty.channel.ChannelHandlerAdapter
      extended by io.netty.channel.ChannelInboundHandlerAdapter
          extended by io.netty.channel.ChannelDuplexHandler
              extended by org.mockserver.client.netty.HttpClientConnectionHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler

public class HttpClientConnectionHandler
extends io.netty.channel.ChannelDuplexHandler


Nested Class Summary
 
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
HttpClientConnectionHandler(com.google.common.util.concurrent.SettableFuture<HttpResponse> responseFuture)
           
 
Method Summary
 void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
           
 void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx)
           
 void close(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise)
           
 void deregister(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise)
           
 void disconnect(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise)
           
 void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
           
 void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
           
 
Methods inherited from class io.netty.channel.ChannelDuplexHandler
bind, connect, flush, read, write
 
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRead, channelReadComplete, channelRegistered, channelWritabilityChanged, userEventTriggered
 
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, isSharable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded
 

Constructor Detail

HttpClientConnectionHandler

public HttpClientConnectionHandler(com.google.common.util.concurrent.SettableFuture<HttpResponse> responseFuture)
Method Detail

channelInactive

public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
                     throws Exception
Specified by:
channelInactive in interface io.netty.channel.ChannelInboundHandler
Overrides:
channelInactive in class io.netty.channel.ChannelInboundHandlerAdapter
Throws:
Exception

disconnect

public void disconnect(io.netty.channel.ChannelHandlerContext ctx,
                       io.netty.channel.ChannelPromise promise)
                throws Exception
Specified by:
disconnect in interface io.netty.channel.ChannelOutboundHandler
Overrides:
disconnect in class io.netty.channel.ChannelDuplexHandler
Throws:
Exception

close

public void close(io.netty.channel.ChannelHandlerContext ctx,
                  io.netty.channel.ChannelPromise promise)
           throws Exception
Specified by:
close in interface io.netty.channel.ChannelOutboundHandler
Overrides:
close in class io.netty.channel.ChannelDuplexHandler
Throws:
Exception

deregister

public void deregister(io.netty.channel.ChannelHandlerContext ctx,
                       io.netty.channel.ChannelPromise promise)
                throws Exception
Specified by:
deregister in interface io.netty.channel.ChannelOutboundHandler
Overrides:
deregister in class io.netty.channel.ChannelDuplexHandler
Throws:
Exception

channelUnregistered

public void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx)
                         throws Exception
Specified by:
channelUnregistered in interface io.netty.channel.ChannelInboundHandler
Overrides:
channelUnregistered in class io.netty.channel.ChannelInboundHandlerAdapter
Throws:
Exception

handlerRemoved

public void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
                    throws Exception
Specified by:
handlerRemoved in interface io.netty.channel.ChannelHandler
Overrides:
handlerRemoved in class io.netty.channel.ChannelHandlerAdapter
Throws:
Exception

exceptionCaught

public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
                            Throwable cause)
                     throws Exception
Specified by:
exceptionCaught in interface io.netty.channel.ChannelHandler
Specified by:
exceptionCaught in interface io.netty.channel.ChannelInboundHandler
Overrides:
exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter
Throws:
Exception


Copyright © 2017. All rights reserved.