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
-
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 Object>, Writeable.Writer<V extends Object> -
Field Summary
FieldsFields inherited from interface org.opensearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchTemplateResponsefromXContent(XContentParser parser) booleanvoidsetResponse(SearchResponse searchResponse) voidsetSource(BytesReference source) status()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class org.opensearch.transport.TransportMessage
remoteAddress, remoteAddressMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
TEMPLATE_OUTPUT_FIELD
-
-
Method Details
-
getSource
-
setSource
-
getResponse
-
setResponse
-
hasResponse
public boolean hasResponse() -
toString
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
fromXContent
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
status
- Specified by:
statusin interfaceStatusToXContentObject
-