Package org.elasticsearch.http
Class HttpPipelinedRequest
java.lang.Object
org.elasticsearch.http.HttpPipelinedRequest
- All Implemented Interfaces:
Comparable<HttpPipelinedMessage>
,HttpPipelinedMessage
,HttpPreRequest
,HttpRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.http.HttpRequest
HttpRequest.HttpVersion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncontent()
createResponse
(RestStatus status, BytesReference content) Create an http response from this request and the supplied status and content.Get all of the headers and values associated with the HTTP headers.int
Get the sequence number for this message.method()
Returns the HTTP method used in the HTTP request.void
release()
Release any resources associated with this request.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.removeHeader
(String header) uri()
The uri 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.HttpPreRequest
header
-
Constructor Details
-
HttpPipelinedRequest
-
-
Method Details
-
method
Description copied from interface:HttpPreRequest
Returns the HTTP method used in the HTTP request.- Specified by:
method
in interfaceHttpPreRequest
- Returns:
- the
RestRequest.Method
used in the request
-
uri
Description copied from interface:HttpPreRequest
The uri with the query string.- Specified by:
uri
in interfaceHttpPreRequest
-
content
- Specified by:
content
in interfaceHttpRequest
-
getHeaders
Description copied from interface:HttpPreRequest
Get all of the headers and values associated with the HTTP headers. Modifications of this map are not supported.- Specified by:
getHeaders
in interfaceHttpPreRequest
-
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
- 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
-