Class RemoteHostHeader
java.lang.Object
org.elasticsearch.xpack.security.rest.RemoteHostHeader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprocess(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 voidputRestRemoteAddress(org.elasticsearch.common.util.concurrent.ThreadContext threadContext, SocketAddress address) static InetSocketAddressrestRemoteAddress(org.elasticsearch.common.util.concurrent.ThreadContext threadContext) Extracts the rest remote address from the message context.
-
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, returnsnull. 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)
-