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 BytesReference
content()
HttpPipelinedResponse
createResponse(RestStatus status, BytesReference content)
Create an http response from this request and the supplied status and content.HttpRequest
getDelegateRequest()
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.Exception
getInboundException()
int
getSequence()
Get the sequence number for this message.RestRequest.Method
method()
Returns the HTTP method used in the HTTP request.HttpRequest.HttpVersion
protocolVersion()
void
release()
Release any resources associated with this request.HttpRequest
releaseAndCopy()
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.HttpRequest
removeHeader(java.lang.String header)
java.util.List<java.lang.String>
strictCookies()
java.lang.String
uri()
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, wait
Methods inherited from interface org.elasticsearch.http.HttpPipelinedMessage
compareTo
Methods inherited from interface org.elasticsearch.http.HttpRequest
allHeaders, header
-
Constructor Details
-
HttpPipelinedRequest
-
-
Method Details
-
method
Description copied from interface:HttpRequest
Returns the HTTP method used in the HTTP request.- Specified by:
method
in interfaceHttpRequest
- 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 interfaceHttpRequest
-
content
- Specified by:
content
in interfaceHttpRequest
-
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 interfaceHttpRequest
-
strictCookies
public java.util.List<java.lang.String> strictCookies()- Specified by:
strictCookies
in interfaceHttpRequest
-
protocolVersion
- Specified by:
protocolVersion
in interfaceHttpRequest
-
removeHeader
- Specified by:
removeHeader
in interfaceHttpRequest
-
createResponse
Description copied from interface:HttpRequest
Create an http response from this request and the supplied status and content.- Specified by:
createResponse
in interfaceHttpRequest
-
release
public void release()Description copied from interface:HttpRequest
Release 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:
release
in interfaceHttpRequest
-
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 interfaceHttpRequest
- Returns:
- a safe unpooled http request
-
getInboundException
public java.lang.Exception getInboundException()- Specified by:
getInboundException
in interfaceHttpRequest
-
getSequence
public int getSequence()Description copied from interface:HttpPipelinedMessage
Get the sequence number for this message.- Specified by:
getSequence
in interfaceHttpPipelinedMessage
- Returns:
- the sequence number
-
getDelegateRequest
-