Interface StatusToXContentObject
- All Superinterfaces:
org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
- All Known Implementing Classes:
BulkItemResponse
,BulkResponse
,ClearScrollResponse
,ClusterHealthResponse
,DeleteResponse
,DocWriteResponse
,ExplainResponse
,GetPipelineResponse
,GetScriptContextResponse
,GetScriptLanguageResponse
,GetStoredScriptResponse
,IndexResponse
,ListDanglingIndicesResponse
,SearchResponse
,UpdateResponse
public interface StatusToXContentObject
extends org.elasticsearch.common.xcontent.ToXContentObject
Objects that can both render themselves in as json/yaml/etc and can provide a
RestStatus
for their response. Usually should be
implemented by top level responses sent back to users from REST endpoints.-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and Type Method Description RestStatus
status()
Returns the REST status to make sure it is returned correctly
-
Method Details
-
status
RestStatus status()Returns the REST status to make sure it is returned correctly
-