Package org.elasticsearch.rest
Class RestResponse
java.lang.Object
org.elasticsearch.rest.RestResponse
- Direct Known Subclasses:
BytesRestResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a custom header.abstract BytesReferencecontent()The response content.abstract StringThe response content type.voidfilterHeaders(Map<String,List<String>> headers)Returns custom headers that have been added.abstract RestStatusstatus()The rest status code.
-
Constructor Details
-
RestResponse
public RestResponse()
-
-
Method Details
-
contentType
The response content type. -
content
The response content. Note, if the content isReleasableit should automatically be released when done by the channel sending it. -
status
The rest status code. -
copyHeaders
-
addHeader
Add a custom header. -
getHeaders
Returns custom headers that have been added. This method should not be used to mutate headers. -
filterHeaders
-