Class ClientYamlSuiteRestSpec
- java.lang.Object
-
- org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestSpec
-
public class ClientYamlSuiteRestSpec extends java.lang.ObjectHolds the specification used to turndoactions in the YAML suite into REST api calls.
-
-
Method Summary
Modifier and Type Method Description ClientYamlSuiteRestApigetApi(java.lang.String api)java.util.Collection<ClientYamlSuiteRestApi>getApis()booleanisClientParameter(java.lang.String name)Returns whether the provided parameter is one of those parameters that are supported by the Elasticsearch language clients, meaning that they influence the client behaviour and don't get sent to ElasticsearchbooleanisGlobalParameter(java.lang.String param)Returns whether the provided parameter is one of those parameters that are supported by all Elasticsearch apistatic ClientYamlSuiteRestSpecload(java.lang.String classpathPrefix)Parses the complete set of REST spec available under the provided directories
-
-
-
Method Detail
-
getApi
public ClientYamlSuiteRestApi getApi(java.lang.String api)
-
getApis
public java.util.Collection<ClientYamlSuiteRestApi> getApis()
-
isGlobalParameter
public boolean isGlobalParameter(java.lang.String param)
Returns whether the provided parameter is one of those parameters that are supported by all Elasticsearch api
-
isClientParameter
public boolean isClientParameter(java.lang.String name)
Returns whether the provided parameter is one of those parameters that are supported by the Elasticsearch language clients, meaning that they influence the client behaviour and don't get sent to Elasticsearch
-
load
public static ClientYamlSuiteRestSpec load(java.lang.String classpathPrefix) throws java.lang.Exception
Parses the complete set of REST spec available under the provided directories- Throws:
java.lang.Exception
-
-