Class PutPipelineRequest

All Implemented Interfaces:
AckedRequest, Writeable, org.elasticsearch.common.util.concurrent.RefCounted, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject, TaskAwareRequest

public class PutPipelineRequest
extends AcknowledgedRequest<PutPipelineRequest>
implements org.elasticsearch.common.xcontent.ToXContentObject
  • Constructor Details

    • PutPipelineRequest

      public PutPipelineRequest​(java.lang.String id, BytesReference source, org.elasticsearch.common.xcontent.XContentType xContentType)
      Create a new pipeline request with the id and source along with the content type of the source
    • PutPipelineRequest

      public PutPipelineRequest​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • validate

      Specified by:
      validate in class ActionRequest
    • getId

      public java.lang.String getId()
    • getSource

      public BytesReference getSource()
    • getXContentType

      public org.elasticsearch.common.xcontent.XContentType getXContentType()
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class AcknowledgedRequest<PutPipelineRequest>
      Throws:
      java.io.IOException
    • toXContent

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