Package org.littleshoot.proxy.impl
Class ProxyConnection.RequestWrittenMonitor
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelOutboundHandlerAdapter
org.littleshoot.proxy.impl.ProxyConnection.RequestWrittenMonitor
- All Implemented Interfaces:
ChannelHandler,ChannelOutboundHandler
- Enclosing class:
- ProxyConnection<I extends HttpObject>
@Sharable
protected abstract static class ProxyConnection.RequestWrittenMonitor
extends ChannelOutboundHandlerAdapter
Utility handler for monitoring requests written on this connection.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidcontentWritten(HttpContent httpContent) Invoked immediately after an HttpContent has been sent.protected abstract voidrequestWriting(HttpRequest httpRequest) Invoked immediately before an HttpRequest is written.protected abstract voidrequestWritten(HttpRequest httpRequest) Invoked immediately after an HttpRequest has been sent.voidwrite(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
Constructor Details
-
RequestWrittenMonitor
protected RequestWrittenMonitor()
-
-
Method Details
-
write
- Specified by:
writein interfaceChannelOutboundHandler- Overrides:
writein classChannelOutboundHandlerAdapter- Throws:
Exception
-
requestWriting
Invoked immediately before an HttpRequest is written. -
requestWritten
Invoked immediately after an HttpRequest has been sent. -
contentWritten
Invoked immediately after an HttpContent has been sent.
-