org.mockserver.proxy.http.direct
Class DirectProxyUpstreamHandler

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.proxy.http.direct.DirectProxyUpstreamHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler

public class DirectProxyUpstreamHandler
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
DirectProxyUpstreamHandler(InetSocketAddress remoteSocketAddress, boolean secure, int bufferedCapacity, Interceptor interceptor, String loggerName)
           
 
Method Summary
 void channelActive(io.netty.channel.ChannelHandlerContext ctx)
           
 void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
           
 void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)
           
 void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
           
 void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
           
 void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
           
 void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
           
 
Methods inherited from class io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, read, write
 
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
 
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
isSharable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectProxyUpstreamHandler

public DirectProxyUpstreamHandler(InetSocketAddress remoteSocketAddress,
                                  boolean secure,
                                  int bufferedCapacity,
                                  Interceptor interceptor,
                                  String loggerName)
Method Detail

handlerAdded

public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
                  throws Exception
Specified by:
handlerAdded in interface io.netty.channel.ChannelHandler
Overrides:
handlerAdded in class io.netty.channel.ChannelHandlerAdapter
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

channelActive

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

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

channelReadComplete

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

channelRead

public void channelRead(io.netty.channel.ChannelHandlerContext ctx,
                        Object msg)
                 throws Exception
Specified by:
channelRead in interface io.netty.channel.ChannelInboundHandler
Overrides:
channelRead in class io.netty.channel.ChannelInboundHandlerAdapter
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 © 2014. All rights reserved.