Class GetStoredScriptResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.action.admin.cluster.storedscripts.GetStoredScriptResponse
- All Implemented Interfaces:
- Writeable,- StatusToXContentObject,- org.elasticsearch.common.xcontent.ToXContent,- org.elasticsearch.common.xcontent.ToXContentObject,- org.elasticsearch.core.RefCounted
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.action.ActionResponseActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContentorg.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldFields inherited from interface org.elasticsearch.common.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanstatic GetStoredScriptResponsefromXContent(org.elasticsearch.common.xcontent.XContentParser parser)getId()inthashCode()status()Returns the REST status to make sure it is returned correctlyorg.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessagedecRef, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObjectisFragment
- 
Field Details- 
_ID_PARSE_FIELDpublic static final org.elasticsearch.common.xcontent.ParseField _ID_PARSE_FIELD
- 
FOUND_PARSE_FIELDpublic static final org.elasticsearch.common.xcontent.ParseField FOUND_PARSE_FIELD
- 
SCRIPTpublic static final org.elasticsearch.common.xcontent.ParseField SCRIPT
 
- 
- 
Constructor Details- 
GetStoredScriptResponse- Throws:
- IOException
 
 
- 
- 
Method Details- 
getId
- 
getSource- Returns:
- if a stored script and if not found null
 
- 
statusDescription copied from interface:StatusToXContentObjectReturns the REST status to make sure it is returned correctly- Specified by:
- statusin interface- StatusToXContentObject
 
- 
toXContentpublic org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
- toXContentin interface- org.elasticsearch.common.xcontent.ToXContent
- Throws:
- IOException
 
- 
fromXContentpublic static GetStoredScriptResponse fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException- Throws:
- IOException
 
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
equals
- 
hashCodepublic int hashCode()
 
-