Class PutStoredScriptRequest

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

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

    • PutStoredScriptRequest

      public PutStoredScriptRequest(StreamInput in) throws
      Throws:
    • PutStoredScriptRequest

      public PutStoredScriptRequest()
    • PutStoredScriptRequest

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

    • validate

      Specified by:
      validate in class ActionRequest
    • id

      public  id()
    • id

      public  id)
    • context

      public  context()
    • context

      public  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
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class AcknowledgedRequest<PutStoredScriptRequest>
      Throws:
    • toString

      public  toString()
      Overrides:
      toString in class TransportRequest
    • toXContent

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