AckedRequest, Streamable, Writeable, TaskAwareRequestpublic class PutStoredScriptRequest extends AcknowledgedRequest<PutStoredScriptRequest>
TransportRequest.EmptyWriteable.Reader<V>, Writeable.Writer<V>DEFAULT_ACK_TIMEOUT, timeoutDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout| Constructor | Description |
|---|---|
PutStoredScriptRequest() |
|
PutStoredScriptRequest(java.lang.String id,
java.lang.String context,
BytesReference content,
XContentType xContentType,
StoredScriptSource source) |
| Modifier and Type | Method | Description |
|---|---|---|
BytesReference |
content() |
|
PutStoredScriptRequest |
content(BytesReference content,
XContentType xContentType) |
Set the script source and the content type of the bytes.
|
java.lang.String |
context() |
|
PutStoredScriptRequest |
context(java.lang.String context) |
|
java.lang.String |
id() |
|
PutStoredScriptRequest |
id(java.lang.String id) |
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
StoredScriptSource |
source() |
|
java.lang.String |
toString() |
|
ActionRequestValidationException |
validate() |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
XContentType |
xContentType() |
masterNodeTimeoutackTimeout, timeout, timeout, timeoutgetShouldStoreResultmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewWriteableReadercreateTask, getDescription, setParentTaskremoteAddress, remoteAddressgetParentTask, setParentTaskpublic PutStoredScriptRequest()
public PutStoredScriptRequest(java.lang.String id,
java.lang.String context,
BytesReference content,
XContentType xContentType,
StoredScriptSource source)
public ActionRequestValidationException validate()
validate in class ActionRequestpublic java.lang.String id()
public PutStoredScriptRequest id(java.lang.String id)
public java.lang.String context()
public PutStoredScriptRequest context(java.lang.String context)
public BytesReference content()
public XContentType xContentType()
public StoredScriptSource source()
public PutStoredScriptRequest content(BytesReference content, XContentType xContentType)
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class AcknowledgedRequest<PutStoredScriptRequest>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class AcknowledgedRequest<PutStoredScriptRequest>java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object