Class ConfigHelper
- java.lang.Object
-
- com.floragunn.searchguard.support.ConfigHelper
-
public class ConfigHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ConfigHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> SgDynamicConfiguration<T>fromYamlFile(String filepath, CType ctype, int version)static <T> SgDynamicConfiguration<T>fromYamlReader(Reader yamlReader, CType ctype, int version)static <T> SgDynamicConfiguration<T>fromYamlString(String yamlString, CType ctype, int version)static org.elasticsearch.common.bytes.BytesReferencereadXContent(Reader reader, org.elasticsearch.xcontent.XContentType xContentType)static voiduploadFile(org.elasticsearch.client.Client tc, String filepath, String index, CType cType, int configVersion)
-
-
-
Method Detail
-
uploadFile
public static void uploadFile(org.elasticsearch.client.Client tc, String filepath, String index, CType cType, int configVersion) throws Exception- Throws:
Exception
-
readXContent
public static org.elasticsearch.common.bytes.BytesReference readXContent(Reader reader, org.elasticsearch.xcontent.XContentType xContentType) throws IOException
- Throws:
IOException
-
fromYamlReader
public static <T> SgDynamicConfiguration<T> fromYamlReader(Reader yamlReader, CType ctype, int version) throws IOException
- Throws:
IOException
-
fromYamlFile
public static <T> SgDynamicConfiguration<T> fromYamlFile(String filepath, CType ctype, int version) throws IOException
- Throws:
IOException
-
fromYamlString
public static <T> SgDynamicConfiguration<T> fromYamlString(String yamlString, CType ctype, int version) throws IOException
- Throws:
IOException
-
-