Package org.opensearch.script.mustache
Class SearchTemplateResponse
java.lang.Object
org.opensearch.transport.TransportMessage
org.opensearch.transport.TransportResponse
org.opensearch.action.ActionResponse
org.opensearch.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.opensearch.transport.TransportResponse
TransportResponse.EmptyNested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object> -
Field Summary
Fields Modifier and Type Field Description static ParseFieldTEMPLATE_OUTPUT_FIELD -
Method Summary
Modifier and Type Method Description static SearchTemplateResponsefromXContent(XContentParser parser)SearchResponsegetResponse()BytesReferencegetSource()booleanhasResponse()voidsetResponse(SearchResponse searchResponse)voidsetSource(BytesReference source)RestStatusstatus()java.lang.StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)
-
Field Details
-
Method Details
-
getSource
-
setSource
-
getResponse
-
setResponse
-
hasResponse
public boolean hasResponse() -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
writeTo
-
fromXContent
public static SearchTemplateResponse fromXContent(XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
status
- Specified by:
statusin interfaceStatusToXContentObject
-