public class SearchTemplateResponse extends ActionResponse implements StatusToXContentObject
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
SearchResponse |
getResponse() |
BytesReference |
getSource() |
boolean |
hasResponse() |
void |
readFrom(StreamInput in) |
void |
setResponse(SearchResponse searchResponse) |
void |
setSource(BytesReference source) |
RestStatus |
status() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
remoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic BytesReference getSource()
public void setSource(BytesReference source)
public SearchResponse getResponse()
public void setResponse(SearchResponse searchResponse)
public boolean hasResponse()
public void writeTo(StreamOutput out) throws java.io.IOException
writeTo in interface StreamablewriteTo in class ActionResponsejava.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
readFrom in interface StreamablereadFrom in class ActionResponsejava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic RestStatus status()
status in interface StatusToXContentObject