public class DeleteResponse extends DocWriteResponse
DeleteRequest
,
Client.delete(DeleteRequest)
DocWriteResponse.Result
ReplicationResponse.ShardInfo
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
result
EMPTY
EMPTY_PARAMS
Constructor and Description |
---|
DeleteResponse() |
DeleteResponse(ShardId shardId,
java.lang.String type,
java.lang.String id,
long version,
boolean found) |
Modifier and Type | Method and Description |
---|---|
RestStatus |
status()
returns the rest status for this response (based on
ShardInfo#status() |
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
forcedRefresh, getId, getIndex, getLocation, getResult, getShardId, getType, getVersion, readFrom, setForcedRefresh, writeTo
getShardInfo, setShardInfo
remoteAddress, remoteAddress
public DeleteResponse()
public DeleteResponse(ShardId shardId, java.lang.String type, java.lang.String id, long version, boolean found)
public RestStatus status()
DocWriteResponse
ShardInfo#status()
status
in interface StatusToXContent
status
in class DocWriteResponse
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
toXContent
in class DocWriteResponse
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object