Class Netty4HttpRequest

java.lang.Object
org.elasticsearch.http.netty4.Netty4HttpRequest
All Implemented Interfaces:
org.elasticsearch.http.HttpRequest

public class Netty4HttpRequest extends Object implements org.elasticsearch.http.HttpRequest
  • Method Details

    • method

      public org.elasticsearch.rest.RestRequest.Method method()
      Specified by:
      method in interface org.elasticsearch.http.HttpRequest
    • uri

      public String uri()
      Specified by:
      uri in interface org.elasticsearch.http.HttpRequest
    • content

      public org.elasticsearch.common.bytes.BytesReference content()
      Specified by:
      content in interface org.elasticsearch.http.HttpRequest
    • release

      public void release()
      Specified by:
      release in interface org.elasticsearch.http.HttpRequest
    • releaseAndCopy

      public org.elasticsearch.http.HttpRequest releaseAndCopy()
      Specified by:
      releaseAndCopy in interface org.elasticsearch.http.HttpRequest
    • getHeaders

      public final Map<String,​List<String>> getHeaders()
      Specified by:
      getHeaders in interface org.elasticsearch.http.HttpRequest
    • strictCookies

      public List<String> strictCookies()
      Specified by:
      strictCookies in interface org.elasticsearch.http.HttpRequest
    • protocolVersion

      public org.elasticsearch.http.HttpRequest.HttpVersion protocolVersion()
      Specified by:
      protocolVersion in interface org.elasticsearch.http.HttpRequest
    • removeHeader

      public org.elasticsearch.http.HttpRequest removeHeader(String header)
      Specified by:
      removeHeader in interface org.elasticsearch.http.HttpRequest
    • createResponse

      public Netty4HttpResponse createResponse(org.elasticsearch.rest.RestStatus status, org.elasticsearch.common.bytes.BytesReference content)
      Specified by:
      createResponse in interface org.elasticsearch.http.HttpRequest
    • getInboundException

      public Exception getInboundException()
      Specified by:
      getInboundException in interface org.elasticsearch.http.HttpRequest
    • nettyRequest

      public io.netty.handler.codec.http.FullHttpRequest nettyRequest()