Module org.elasticsearch.security
Class RemoteHostHeader
java.lang.Object
org.elasticsearch.xpack.security.rest.RemoteHostHeader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprocess(io.netty.channel.Channel channel, ThreadContext threadContext) Extracts the remote address from the given netty channel and puts it in the request context.static InetSocketAddressrestRemoteAddress(ThreadContext threadContext) Extracts the rest remote address from the message context.
-
Constructor Details
-
RemoteHostHeader
public RemoteHostHeader()
-
-
Method Details
-
process
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
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.
-