Package org.elasticsearch.http.netty4
Class Netty4HttpRequest
- java.lang.Object
-
- org.elasticsearch.rest.RestRequest
-
- org.elasticsearch.http.netty4.Netty4HttpRequest
-
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent.Params
public class Netty4HttpRequest extends org.elasticsearch.rest.RestRequest
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.elasticsearch.common.bytes.BytesReferencecontent()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()org.elasticsearch.rest.RestRequest.Methodmethod()io.netty.handler.codec.http.FullHttpRequestrequest()java.lang.Stringuri()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.elasticsearch.rest.RestRequest
applyContentParser, contentOrSourceParam, contentOrSourceParamParser, contentParser, getAllHeaderValues, getHeaders, getXContentRegistry, getXContentType, hasContentOrSourceParam, hasParam, header, 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 org.elasticsearch.rest.RestRequest.Method method()
- Specified by:
methodin classorg.elasticsearch.rest.RestRequest
-
uri
public java.lang.String uri()
- Specified by:
uriin classorg.elasticsearch.rest.RestRequest
-
hasContent
public boolean hasContent()
- Specified by:
hasContentin classorg.elasticsearch.rest.RestRequest
-
content
public org.elasticsearch.common.bytes.BytesReference content()
- Specified by:
contentin classorg.elasticsearch.rest.RestRequest
-
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 classorg.elasticsearch.rest.RestRequest
-
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 classorg.elasticsearch.rest.RestRequest
-
getChannel
public io.netty.channel.Channel getChannel()
-
-