Makes StoredScriptSource implement ToXContentObject
This commit is contained in:
parent
ca9aebac72
commit
6d6a230f70
|
@ -34,7 +34,7 @@ import org.elasticsearch.common.io.stream.Writeable;
|
||||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||||
import org.elasticsearch.common.xcontent.ObjectParser;
|
import org.elasticsearch.common.xcontent.ObjectParser;
|
||||||
import org.elasticsearch.common.xcontent.ObjectParser.ValueType;
|
import org.elasticsearch.common.xcontent.ObjectParser.ValueType;
|
||||||
import org.elasticsearch.common.xcontent.ToXContent;
|
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||||
import org.elasticsearch.common.xcontent.XContentFactory;
|
import org.elasticsearch.common.xcontent.XContentFactory;
|
||||||
import org.elasticsearch.common.xcontent.XContentParser;
|
import org.elasticsearch.common.xcontent.XContentParser;
|
||||||
|
@ -52,7 +52,7 @@ import java.util.Objects;
|
||||||
* {@link StoredScriptSource} represents user-defined parameters for a script
|
* {@link StoredScriptSource} represents user-defined parameters for a script
|
||||||
* saved in the {@link ClusterState}.
|
* saved in the {@link ClusterState}.
|
||||||
*/
|
*/
|
||||||
public class StoredScriptSource extends AbstractDiffable<StoredScriptSource> implements Writeable, ToXContent {
|
public class StoredScriptSource extends AbstractDiffable<StoredScriptSource> implements Writeable, ToXContentObject {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Standard {@link ParseField} for outer level of stored script source.
|
* Standard {@link ParseField} for outer level of stored script source.
|
||||||
|
@ -426,11 +426,6 @@ public class StoredScriptSource extends AbstractDiffable<StoredScriptSource> imp
|
||||||
return builder;
|
return builder;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isFragment() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return The language used for compiling this script.
|
* @return The language used for compiling this script.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue