Class ScriptLanguagesInfo

All Implemented Interfaces:
Writeable, ToXContent, ToXContentObject

public class ScriptLanguagesInfo extends Object implements ToXContentObject, Writeable
The allowable types, languages and their corresponding contexts. When serialized there is a top level types_allowed list, meant to reflect the setting script.allowed_types with the allowed types (eg inline, stored). The top-level language_contexts list of objects have the language (eg. painless, mustache) and a list of contexts available for the language. It is the responsibility of the caller to ensure these contexts are filtered by the script.allowed_contexts setting. The json serialization of the object has the form: { "types_allowed": [ "inline", "stored" ], "language_contexts": [ { "language": "expression", "contexts": [ "aggregation_selector", "aggs" ... ] }, { "language": "painless", "contexts": [ "aggregation_selector", "aggs", "aggs_combine", ... ] } ... ] }