Class Netty4HttpRequest

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

public class Netty4HttpRequest
extends java.lang.Object
implements org.elasticsearch.http.HttpRequest
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.http.HttpRequest

    org.elasticsearch.http.HttpRequest.HttpVersion
  • Method Summary

    Modifier and Type Method Description
    org.elasticsearch.common.bytes.BytesReference content()  
    Netty4HttpResponse createResponse​(org.elasticsearch.rest.RestStatus status, org.elasticsearch.common.bytes.BytesReference content)  
    java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()  
    java.lang.Exception getInboundException()  
    org.elasticsearch.rest.RestRequest.Method method()  
    io.netty.handler.codec.http.FullHttpRequest nettyRequest()  
    org.elasticsearch.http.HttpRequest.HttpVersion protocolVersion()  
    void release()  
    org.elasticsearch.http.HttpRequest releaseAndCopy()  
    org.elasticsearch.http.HttpRequest removeHeader​(java.lang.String header)  
    java.util.List<java.lang.String> strictCookies()  
    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 interface org.elasticsearch.http.HttpRequest

    allHeaders, header
  • Method Details

    • method

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

      public java.lang.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 java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()
      Specified by:
      getHeaders in interface org.elasticsearch.http.HttpRequest
    • strictCookies

      public java.util.List<java.lang.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​(java.lang.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 java.lang.Exception getInboundException()
      Specified by:
      getInboundException in interface org.elasticsearch.http.HttpRequest
    • nettyRequest

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