Class SearchTemplateResponse

java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.core.transport.TransportResponse
org.opensearch.core.action.ActionResponse
org.opensearch.script.mustache.SearchTemplateResponse
All Implemented Interfaces:
StatusToXContentObject, org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject

public class SearchTemplateResponse extends org.opensearch.core.action.ActionResponse implements StatusToXContentObject
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.opensearch.core.transport.TransportResponse

    org.opensearch.core.transport.TransportResponse.Empty

    Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent

    org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable

    org.opensearch.core.common.io.stream.Writeable.Reader<V extends Object>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.opensearch.core.ParseField
     

    Fields inherited from interface org.opensearch.core.xcontent.ToXContent

    EMPTY_PARAMS
  • Method Summary

    Modifier and Type
    Method
    Description
    fromXContent(org.opensearch.core.xcontent.XContentParser parser)
     
     
    org.opensearch.core.common.bytes.BytesReference
     
    boolean
     
    void
    setResponse(SearchResponse searchResponse)
     
    void
    setSource(org.opensearch.core.common.bytes.BytesReference source)
     
    org.opensearch.core.rest.RestStatus
     
     
    org.opensearch.core.xcontent.XContentBuilder
    toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params)
     
    void
    writeTo(org.opensearch.core.common.io.stream.StreamOutput out)
     

    Methods inherited from class org.opensearch.core.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.opensearch.core.xcontent.ToXContentObject

    isFragment
  • Field Details

    • TEMPLATE_OUTPUT_FIELD

      public static org.opensearch.core.ParseField TEMPLATE_OUTPUT_FIELD
  • Method Details

    • getSource

      public org.opensearch.core.common.bytes.BytesReference getSource()
    • setSource

      public void setSource(org.opensearch.core.common.bytes.BytesReference source)
    • getResponse

      public SearchResponse getResponse()
    • setResponse

      public void setResponse(SearchResponse searchResponse)
    • hasResponse

      public boolean hasResponse()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException
    • fromXContent

      public static SearchTemplateResponse fromXContent(org.opensearch.core.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • toXContent

      public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.opensearch.core.xcontent.ToXContent
      Throws:
      IOException
    • status

      public org.opensearch.core.rest.RestStatus status()
      Specified by:
      status in interface StatusToXContentObject