Class SearchTemplateResponse
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportResponse
-
- org.elasticsearch.action.ActionResponse
-
- org.elasticsearch.script.mustache.SearchTemplateResponse
-
- All Implemented Interfaces:
Streamable
,Writeable
,StatusToXContentObject
,ToXContent
,ToXContentObject
public class SearchTemplateResponse extends ActionResponse implements StatusToXContentObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description static ParseField
TEMPLATE_OUTPUT_FIELD
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description static SearchTemplateResponse
fromXContent(XContentParser parser)
SearchResponse
getResponse()
BytesReference
getSource()
boolean
hasResponse()
void
readFrom(StreamInput in)
void
setResponse(SearchResponse searchResponse)
void
setSource(BytesReference source)
RestStatus
status()
java.lang.String
toString()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
void
writeTo(StreamOutput out)
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
TEMPLATE_OUTPUT_FIELD
public static ParseField TEMPLATE_OUTPUT_FIELD
-
-
Method Detail
-
getSource
public BytesReference getSource()
-
setSource
public void setSource(BytesReference source)
-
getResponse
public SearchResponse getResponse()
-
setResponse
public void setResponse(SearchResponse searchResponse)
-
hasResponse
public boolean hasResponse()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
- Specified by:
writeTo
in interfaceStreamable
- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classActionResponse
- Throws:
java.io.IOException
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
- Specified by:
readFrom
in interfaceStreamable
- Overrides:
readFrom
in classActionResponse
- Throws:
java.io.IOException
-
fromXContent
public static SearchTemplateResponse fromXContent(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
status
public RestStatus status()
- Specified by:
status
in interfaceStatusToXContentObject
-
-