Class HttpPipelinedRequest

java.lang.Object
org.elasticsearch.http.HttpPipelinedRequest
All Implemented Interfaces:
java.lang.Comparable<HttpPipelinedMessage>, HttpPipelinedMessage, HttpRequest

public class HttpPipelinedRequest
extends java.lang.Object
implements HttpRequest, HttpPipelinedMessage
  • Constructor Details

    • HttpPipelinedRequest

      public HttpPipelinedRequest​(int sequence, HttpRequest delegate)
  • Method Details

    • method

      public RestRequest.Method method()
      Description copied from interface: HttpRequest
      Returns the HTTP method used in the HTTP request.
      Specified by:
      method in interface HttpRequest
      Returns:
      the RestRequest.Method used in the REST request
    • uri

      public java.lang.String uri()
      Description copied from interface: HttpRequest
      The uri of the rest request, with the query string.
      Specified by:
      uri in interface HttpRequest
    • content

      public BytesReference content()
      Specified by:
      content in interface HttpRequest
    • getHeaders

      public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()
      Description copied from interface: HttpRequest
      Get all of the headers and values associated with the headers. Modifications of this map are not supported.
      Specified by:
      getHeaders in interface HttpRequest
    • strictCookies

      public java.util.List<java.lang.String> strictCookies()
      Specified by:
      strictCookies in interface HttpRequest
    • protocolVersion

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

      public HttpRequest removeHeader​(java.lang.String header)
      Specified by:
      removeHeader in interface HttpRequest
    • createResponse

      public HttpPipelinedResponse createResponse​(RestStatus status, BytesReference content)
      Description copied from interface: HttpRequest
      Create an http response from this request and the supplied status and content.
      Specified by:
      createResponse in interface HttpRequest
    • release

      public void release()
      Description copied from interface: HttpRequest
      Release any resources associated with this request. Implementations should be idempotent. The behavior of HttpRequest.content() after this method has been invoked is undefined and implementation specific.
      Specified by:
      release in interface HttpRequest
    • releaseAndCopy

      public HttpRequest releaseAndCopy()
      Description copied from interface: HttpRequest
      If this instances uses any pooled resources, creates a copy of this instance that does not use any pooled resources and releases any resources associated with this instance. If the instance does not use any shared resources, returns itself.
      Specified by:
      releaseAndCopy in interface HttpRequest
      Returns:
      a safe unpooled http request
    • getInboundException

      public java.lang.Exception getInboundException()
      Specified by:
      getInboundException in interface HttpRequest
    • getSequence

      public int getSequence()
      Description copied from interface: HttpPipelinedMessage
      Get the sequence number for this message.
      Specified by:
      getSequence in interface HttpPipelinedMessage
      Returns:
      the sequence number
    • getDelegateRequest

      public HttpRequest getDelegateRequest()