Class HttpActionHandler


  • public class HttpActionHandler
    extends Object
    Author:
    jamesdbloom
    • Field Detail

      • REMOTE_SOCKET

        public static final io.netty.util.AttributeKey<InetSocketAddress> REMOTE_SOCKET
    • Method Detail

      • 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)
      • getRemoteAddress

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

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