Class SearchTemplateResponse
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportResponse
-
- org.elasticsearch.action.ActionResponse
-
- org.elasticsearch.script.mustache.SearchTemplateResponse
-
- All Implemented Interfaces:
Writeable,StatusToXContentObject,ToXContent,ToXContentObject
public class SearchTemplateResponse extends ActionResponse implements StatusToXContentObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
Fields Modifier and Type Field Description static ParseFieldTEMPLATE_OUTPUT_FIELD-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SearchTemplateResponsefromXContent(XContentParser parser)SearchResponsegetResponse()BytesReferencegetSource()booleanhasResponse()voidsetResponse(SearchResponse searchResponse)voidsetSource(BytesReference source)RestStatusstatus()Returns the REST status to make sure it is returned correctlyStringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
TEMPLATE_OUTPUT_FIELD
public static ParseField TEMPLATE_OUTPUT_FIELD
-
-
Method Detail
-
getSource
public BytesReference getSource()
-
setSource
public void setSource(BytesReference source)
-
getResponse
public SearchResponse getResponse()
-
setResponse
public void setResponse(SearchResponse searchResponse)
-
hasResponse
public boolean hasResponse()
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
fromXContent
public static SearchTemplateResponse fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
status
public RestStatus status()
Description copied from interface:StatusToXContentObjectReturns the REST status to make sure it is returned correctly- Specified by:
statusin interfaceStatusToXContentObject
-
-