Class PutStoredScriptRequest

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

public class PutStoredScriptRequest
extends AcknowledgedRequest<PutStoredScriptRequest>
implements org.elasticsearch.common.xcontent.ToXContentFragment
  • Constructor Details

    • PutStoredScriptRequest

      public PutStoredScriptRequest​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
    • PutStoredScriptRequest

      public PutStoredScriptRequest()
    • PutStoredScriptRequest

      public PutStoredScriptRequest​(java.lang.String id, java.lang.String context, BytesReference content, org.elasticsearch.common.xcontent.XContentType xContentType, StoredScriptSource source)
  • Method Details

    • validate

      Specified by:
      validate in class ActionRequest
    • id

      public java.lang.String id()
    • id

      public PutStoredScriptRequest id​(java.lang.String id)
    • context

      public java.lang.String context()
    • context

      public PutStoredScriptRequest context​(java.lang.String context)
    • content

      public BytesReference content()
    • xContentType

      public org.elasticsearch.common.xcontent.XContentType xContentType()
    • source

      public StoredScriptSource source()
    • content

      public PutStoredScriptRequest content​(BytesReference content, org.elasticsearch.common.xcontent.XContentType xContentType)
      Set the script source and the content type of the bytes.
    • 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<PutStoredScriptRequest>
      Throws:
      java.io.IOException
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • 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