Class HttpActionHandler

java.lang.Object
org.mockserver.mock.action.http.HttpActionHandler

public class HttpActionHandler extends Object
Author:
jamesdbloom
  • Field Details

    • REMOTE_SOCKET

      public static final io.netty.util.AttributeKey<InetSocketAddress> REMOTE_SOCKET
  • Constructor Details

  • Method Details

    • processEarlyAction

      public void processEarlyAction(HttpRequest request, Expectation expectation, io.netty.channel.ChannelHandlerContext ctx, ResponseWriter earlyResponseWriter, boolean synchronous)
      Dispatch an early-matched expectation before the request body has been received. Supports Action.Type.RESPONSE and Action.Type.ERROR only; other action types are rejected by RequestMatchers.validateRespondBeforeBody at expectation-add time.
    • processAction

      public void processAction(HttpRequest request, ResponseWriter responseWriter, io.netty.channel.ChannelHandlerContext ctx, Set<String> localAddresses, boolean proxyingRequest, boolean synchronous)
    • getHttpClient

      public NettyHttpClient getHttpClient()
    • getRemoteAddress

      public static InetSocketAddress getRemoteAddress(io.netty.channel.ChannelHandlerContext ctx)
    • setRemoteAddress

      public static void setRemoteAddress(io.netty.channel.ChannelHandlerContext ctx, InetSocketAddress inetSocketAddress)