public class PutStoredScriptRequest extends AcknowledgedRequest<PutStoredScriptRequest>
TransportRequest.EmptyDEFAULT_ACK_TIMEOUT, timeoutDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout| Constructor and Description |
|---|
PutStoredScriptRequest() |
PutStoredScriptRequest(java.lang.String id,
java.lang.String lang,
BytesReference content)
Deprecated.
|
PutStoredScriptRequest(java.lang.String id,
java.lang.String lang,
BytesReference content,
XContentType xContentType) |
| Modifier and Type | Method and Description |
|---|---|
BytesReference |
content() |
PutStoredScriptRequest |
content(BytesReference content)
Deprecated.
this method is deprecated as it relies on content type detection. Use
content(BytesReference, XContentType) |
PutStoredScriptRequest |
content(BytesReference content,
XContentType xContentType)
Set the script source and the content type of the bytes.
|
java.lang.String |
id() |
PutStoredScriptRequest |
id(java.lang.String id) |
java.lang.String |
lang() |
PutStoredScriptRequest |
lang(java.lang.String lang) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
java.lang.String |
toString() |
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
XContentType |
xContentType() |
ackTimeout, readTimeout, timeout, timeout, timeout, writeTimeoutmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutgetShouldStoreResultgetParentTask, setParentTaskremoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitmasterNodeTimeoutcreateTask, getDescription, setParentTaskpublic PutStoredScriptRequest()
@Deprecated
public PutStoredScriptRequest(java.lang.String id,
java.lang.String lang,
BytesReference content)
public PutStoredScriptRequest(java.lang.String id,
java.lang.String lang,
BytesReference content,
XContentType xContentType)
public ActionRequestValidationException validate()
validate in class ActionRequestpublic java.lang.String id()
public PutStoredScriptRequest id(java.lang.String id)
public java.lang.String lang()
public PutStoredScriptRequest lang(java.lang.String lang)
public BytesReference content()
public XContentType xContentType()
@Deprecated public PutStoredScriptRequest content(BytesReference content)
content(BytesReference, XContentType)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 class AcknowledgedRequest<PutStoredScriptRequest>java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object