Class Netty4HttpRequest

  • All Implemented Interfaces:
    org.elasticsearch.common.xcontent.ToXContent.Params

    public class Netty4HttpRequest
    extends org.elasticsearch.rest.RestRequest
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.elasticsearch.rest.RestRequest

        org.elasticsearch.rest.RestRequest.BadParameterException, org.elasticsearch.rest.RestRequest.ContentTypeHeaderException, org.elasticsearch.rest.RestRequest.Method
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.elasticsearch.common.bytes.BytesReference content()  
      io.netty.channel.Channel getChannel()  
      java.net.SocketAddress getLocalAddress()
      Returns the local address where this request channel is bound to.
      java.net.SocketAddress getRemoteAddress()
      Returns the remote address where this rest request channel is "connected to".
      boolean hasContent()  
      org.elasticsearch.rest.RestRequest.Method method()  
      io.netty.handler.codec.http.FullHttpRequest request()  
      java.lang.String uri()  
      • 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:
        method in class org.elasticsearch.rest.RestRequest
      • uri

        public java.lang.String uri()
        Specified by:
        uri in class org.elasticsearch.rest.RestRequest
      • hasContent

        public boolean hasContent()
        Specified by:
        hasContent in class org.elasticsearch.rest.RestRequest
      • content

        public org.elasticsearch.common.bytes.BytesReference content()
        Specified by:
        content in class org.elasticsearch.rest.RestRequest
      • getRemoteAddress

        public java.net.SocketAddress getRemoteAddress()
        Returns the remote address where this rest request channel is "connected to". The returned SocketAddress is supposed to be down-cast into more concrete type such as InetSocketAddress to retrieve the detailed information.
        Overrides:
        getRemoteAddress in class org.elasticsearch.rest.RestRequest
      • getLocalAddress

        public java.net.SocketAddress getLocalAddress()
        Returns the local address where this request channel is bound to. The returned SocketAddress is supposed to be down-cast into more concrete type such as InetSocketAddress to retrieve the detailed information.
        Overrides:
        getLocalAddress in class org.elasticsearch.rest.RestRequest
      • getChannel

        public io.netty.channel.Channel getChannel()