Class GetPipelineResponse

All Implemented Interfaces:
Writeable, StatusToXContentObject, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject, org.elasticsearch.core.RefCounted

public class GetPipelineResponse extends ActionResponse implements StatusToXContentObject
  • Constructor Details

  • Method Details

    • pipelines

      public List<PipelineConfiguration> pipelines()
      Get the list of pipelines that were a part of this response. The pipeline id can be obtained using getId on the PipelineConfiguration object.
      Returns:
      A list of PipelineConfiguration objects.
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • isFound

      public boolean isFound()
    • isSummary

      public boolean isSummary()
    • status

      public RestStatus status()
      Description copied from interface: StatusToXContentObject
      Returns the REST status to make sure it is returned correctly
      Specified by:
      status in interface StatusToXContentObject
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      IOException
    • fromXContent

      public static GetPipelineResponse fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException
      Parameters:
      parser - the parser for the XContent that contains the serialized GetPipelineResponse.
      Returns:
      an instance of GetPipelineResponse read from the parser
      Throws:
      IOException - If the parsing fails
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

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

      public int hashCode()
      Overrides:
      hashCode in class Object