Package org.mockserver.proxy.connect
Class HttpConnectHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<T>
-
- org.mockserver.proxy.relay.RelayConnectHandler<HttpRequest>
-
- org.mockserver.proxy.connect.HttpConnectHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
@Sharable public final class HttpConnectHandler extends RelayConnectHandler<HttpRequest>
-
-
Field Summary
-
Fields inherited from class org.mockserver.proxy.relay.RelayConnectHandler
HTTP_CONNECT_SOCKET
-
-
Constructor Summary
Constructors Constructor Description HttpConnectHandler(LifeCycle server, MockServerLogger mockServerLogger, String host, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
failureResponse(Object request)
protected void
removeCodecSupport(io.netty.channel.ChannelHandlerContext ctx)
protected Object
successResponse(Object request)
-
Methods inherited from class org.mockserver.proxy.relay.RelayConnectHandler
channelRead0, exceptionCaught, removeHandler, removeHandler
-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Constructor Detail
-
HttpConnectHandler
public HttpConnectHandler(LifeCycle server, MockServerLogger mockServerLogger, String host, int port)
-
-
Method Detail
-
removeCodecSupport
protected void removeCodecSupport(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
removeCodecSupport
in classRelayConnectHandler<HttpRequest>
-
successResponse
protected Object successResponse(Object request)
- Specified by:
successResponse
in classRelayConnectHandler<HttpRequest>
-
failureResponse
protected Object failureResponse(Object request)
- Specified by:
failureResponse
in classRelayConnectHandler<HttpRequest>
-
-