Package org.elasticsearch.http.netty4
Class Netty4HttpRequest
- java.lang.Object
-
- org.elasticsearch.rest.RestRequest
-
- org.elasticsearch.http.netty4.Netty4HttpRequest
-
- All Implemented Interfaces:
ToXContent.Params
public class Netty4HttpRequest extends RestRequest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.rest.RestRequest
RestRequest.BadParameterException, RestRequest.ContentTypeHeaderException, RestRequest.Method
-
-
Method Summary
Modifier and Type Method Description io.netty.channel.ChannelgetChannel()java.net.SocketAddressgetLocalAddress()Returns the local address where this request channel is bound to.java.net.SocketAddressgetRemoteAddress()Returns the remote address where this rest request channel is "connected to".booleanhasContent()BytesReferenceinnerContent()RestRequest.Methodmethod()io.netty.handler.codec.http.FullHttpRequestrequest()java.lang.Stringuri()-
Methods inherited from class org.elasticsearch.rest.RestRequest
applyContentParser, content, contentOrSourceParam, contentOrSourceParamParser, contentParser, getAllHeaderValues, getHeaders, getXContentRegistry, getXContentType, hasContentOrSourceParam, hasParam, header, isContentConsumed, param, param, paramAsBoolean, paramAsBoolean, paramAsFloat, paramAsInt, paramAsLong, paramAsSize, paramAsStringArray, paramAsStringArrayOrEmptyIfAll, paramAsTime, params, parseContentType, path, rawPath, requiredContent, withContentOrSourceParamParserOrNull
-
-
-
-
Method Detail
-
request
public io.netty.handler.codec.http.FullHttpRequest request()
-
method
public RestRequest.Method method()
- Specified by:
methodin classRestRequest
-
uri
public java.lang.String uri()
- Specified by:
uriin classRestRequest
-
hasContent
public boolean hasContent()
- Specified by:
hasContentin classRestRequest
-
innerContent
public BytesReference innerContent()
- Specified by:
innerContentin classRestRequest
-
getRemoteAddress
public java.net.SocketAddress getRemoteAddress()
Returns the remote address where this rest request channel is "connected to". The returnedSocketAddressis supposed to be down-cast into more concrete type such asInetSocketAddressto retrieve the detailed information.- Overrides:
getRemoteAddressin classRestRequest
-
getLocalAddress
public java.net.SocketAddress getLocalAddress()
Returns the local address where this request channel is bound to. The returnedSocketAddressis supposed to be down-cast into more concrete type such asInetSocketAddressto retrieve the detailed information.- Overrides:
getLocalAddressin classRestRequest
-
getChannel
public io.netty.channel.Channel getChannel()
-
-