Package org.elasticsearch.http.netty4
Class Netty4HttpRequest
java.lang.Object
org.elasticsearch.http.netty4.Netty4HttpRequest
- All Implemented Interfaces:
HttpPreRequest,HttpRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.http.HttpRequest
HttpRequest.HttpVersion -
Constructor Summary
ConstructorsConstructorDescriptionNetty4HttpRequest(int sequence, io.netty.handler.codec.http.HttpRequest nettyRequest, Exception exception) Netty4HttpRequest(int sequence, io.netty.handler.codec.http.HttpRequest nettyRequest, HttpBody content) -
Method Summary
Modifier and TypeMethodDescriptionbody()createResponse(RestStatus status, BytesReference contentRef) createResponse(RestStatus status, ChunkedRestResponseBodyPart firstBodyPart) getHttpHeadersAsMap(io.netty.handler.codec.http.HttpHeaders httpHeaders) io.netty.handler.codec.http.HttpRequestbooleanmethod()rawPath()voidrelease()removeHeader(String header) voidstatic RestRequest.MethodtranslateRequestMethod(io.netty.handler.codec.http.HttpMethod httpMethod) uri()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.http.HttpPreRequest
header
-
Constructor Details
-
Method Details
-
hasContent
public boolean hasContent()- Specified by:
hasContentin interfaceHttpRequest
-
method
- Specified by:
methodin interfaceHttpPreRequest
-
uri
- Specified by:
uriin interfaceHttpPreRequest
-
rawPath
- Specified by:
rawPathin interfaceHttpPreRequest
-
body
- Specified by:
bodyin interfaceHttpRequest
-
setBody
- Specified by:
setBodyin interfaceHttpRequest
-
release
public void release()- Specified by:
releasein interfaceHttpRequest
-
getHeaders
- Specified by:
getHeadersin interfaceHttpPreRequest
-
strictCookies
- Specified by:
strictCookiesin interfaceHttpRequest
-
protocolVersion
- Specified by:
protocolVersionin interfaceHttpRequest
-
removeHeader
- Specified by:
removeHeaderin interfaceHttpRequest
-
createResponse
- Specified by:
createResponsein interfaceHttpRequest
-
createResponse
- Specified by:
createResponsein interfaceHttpRequest
-
getInboundException
- Specified by:
getInboundExceptionin interfaceHttpRequest
-
getNettyRequest
public io.netty.handler.codec.http.HttpRequest getNettyRequest() -
translateRequestMethod
public static RestRequest.Method translateRequestMethod(io.netty.handler.codec.http.HttpMethod httpMethod) -
getHttpHeadersAsMap
-