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
Constructors -
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.intGet the sequence number for this message.method()Returns the HTTP method used in the HTTP request.voidrelease()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, waitMethods inherited from interface org.elasticsearch.http.HttpPipelinedMessage
compareToMethods inherited from interface org.elasticsearch.http.HttpPreRequest
header
-
Constructor Details
-
HttpPipelinedRequest
-
-
Method Details
-
method
Description copied from interface:HttpPreRequestReturns the HTTP method used in the HTTP request.- Specified by:
methodin interfaceHttpPreRequest- Returns:
- the
RestRequest.Methodused in the request
-
uri
Description copied from interface:HttpPreRequestThe uri with the query string.- Specified by:
uriin interfaceHttpPreRequest
-
content
- Specified by:
contentin interfaceHttpRequest
-
getHeaders
Description copied from interface:HttpPreRequestGet all of the headers and values associated with the HTTP headers. Modifications of this map are not supported.- Specified by:
getHeadersin interfaceHttpPreRequest
-
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
- 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
-