Package org.elasticsearch.http
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.http.HttpRequest
HttpRequest.HttpVersion -
Constructor Summary
Constructors Constructor Description HttpPipelinedRequest(int sequence, HttpRequest delegate) -
Method Summary
Modifier and Type Method Description BytesReferencecontent()HttpPipelinedResponsecreateResponse(RestStatus status, BytesReference content)Create an http response from this request and the supplied status and content.HttpRequestgetDelegateRequest()java.util.Map<java.lang.String,java.util.List<java.lang.String>>getHeaders()Get all of the headers and values associated with the headers.java.lang.ExceptiongetInboundException()intgetSequence()Get the sequence number for this message.RestRequest.Methodmethod()Returns the HTTP method used in the HTTP request.HttpRequest.HttpVersionprotocolVersion()voidrelease()Release any resources associated with this request.HttpRequestreleaseAndCopy()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.HttpRequestremoveHeader(java.lang.String header)java.util.List<java.lang.String>strictCookies()java.lang.Stringuri()The uri of the rest request, with the query string.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.http.HttpPipelinedMessage
compareToMethods inherited from interface org.elasticsearch.http.HttpRequest
allHeaders, header
-
Constructor Details
-
HttpPipelinedRequest
-
-
Method Details
-
method
Description copied from interface:HttpRequestReturns the HTTP method used in the HTTP request.- Specified by:
methodin interfaceHttpRequest- Returns:
- the
RestRequest.Methodused in the REST request
-
uri
public java.lang.String uri()Description copied from interface:HttpRequestThe uri of the rest request, with the query string.- Specified by:
uriin interfaceHttpRequest
-
content
- Specified by:
contentin interfaceHttpRequest
-
getHeaders
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()Description copied from interface:HttpRequestGet all of the headers and values associated with the headers. Modifications of this map are not supported.- Specified by:
getHeadersin interfaceHttpRequest
-
strictCookies
public java.util.List<java.lang.String> strictCookies()- Specified by:
strictCookiesin interfaceHttpRequest
-
protocolVersion
- Specified by:
protocolVersionin interfaceHttpRequest
-
removeHeader
- Specified by:
removeHeaderin interfaceHttpRequest
-
createResponse
Description copied from interface:HttpRequestCreate an http response from this request and the supplied status and content.- Specified by:
createResponsein interfaceHttpRequest
-
release
public void release()Description copied from interface:HttpRequestRelease any resources associated with this request. Implementations should be idempotent. The behavior ofHttpRequest.content()after this method has been invoked is undefined and implementation specific.- Specified by:
releasein interfaceHttpRequest
-
releaseAndCopy
Description copied from interface:HttpRequestIf 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:
releaseAndCopyin interfaceHttpRequest- Returns:
- a safe unpooled http request
-
getInboundException
public java.lang.Exception getInboundException()- Specified by:
getInboundExceptionin interfaceHttpRequest
-
getSequence
public int getSequence()Description copied from interface:HttpPipelinedMessageGet the sequence number for this message.- Specified by:
getSequencein interfaceHttpPipelinedMessage- Returns:
- the sequence number
-
getDelegateRequest
-