Class RemoteHostHeader

java.lang.Object
org.elasticsearch.xpack.security.rest.RemoteHostHeader

public class RemoteHostHeader extends Object
  • Constructor Details

    • RemoteHostHeader

      public RemoteHostHeader()
  • Method Details

    • process

      public static void process(io.netty.channel.Channel channel, ThreadContext threadContext)
      Extracts the remote address from the given netty channel and puts it in the request context. This will then be copied to the subsequent action handler contexts.
    • restRemoteAddress

      public static InetSocketAddress restRemoteAddress(ThreadContext threadContext)
      Extracts the rest remote address from the message context. If not found, returns null. Transport messages that were created by rest handlers should have this in their context.