Class RemoteHostHeader

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

public class RemoteHostHeader extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    process(org.elasticsearch.rest.RestRequest request, org.elasticsearch.common.util.concurrent.ThreadContext threadContext)
    Extracts the remote address from the given rest request and puts in the request context.
    static void
    putRestRemoteAddress(org.elasticsearch.common.util.concurrent.ThreadContext threadContext, SocketAddress address)
     
    restRemoteAddress(org.elasticsearch.common.util.concurrent.ThreadContext threadContext)
    Extracts the rest remote address from the message context.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RemoteHostHeader

      public RemoteHostHeader()
  • Method Details

    • process

      public static void process(org.elasticsearch.rest.RestRequest request, org.elasticsearch.common.util.concurrent.ThreadContext threadContext)
      Extracts the remote address from the given rest request and puts in the request context. This will then be copied to the subsequent action requests.
    • restRemoteAddress

      public static InetSocketAddress restRemoteAddress(org.elasticsearch.common.util.concurrent.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.
    • putRestRemoteAddress

      public static void putRestRemoteAddress(org.elasticsearch.common.util.concurrent.ThreadContext threadContext, SocketAddress address)