Package io.split.client
Class SplitFactoryBuilder
- java.lang.Object
-
- io.split.client.SplitFactoryBuilder
-
public class SplitFactoryBuilder extends Object
Builds an instance of SplitClient.
-
-
Constructor Summary
Constructors Constructor Description SplitFactoryBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SplitFactorybuild(String apiToken)Instantiates a SplitFactory with default configstatic SplitFactorybuild(String apiToken, SplitClientConfig config)static voidmain(String... args)
-
-
-
Method Detail
-
build
public static SplitFactory build(String apiToken) throws IOException, URISyntaxException
Instantiates a SplitFactory with default config- Parameters:
apiToken- the API token. MUST NOT be null- Returns:
- a SplitFactory
- Throws:
IOException- if the SDK was being started in 'localhost' mode, but there were problems reading the override file from disk.URISyntaxException
-
build
public static SplitFactory build(String apiToken, SplitClientConfig config) throws IOException, URISyntaxException
- Parameters:
apiToken- the API token. MUST NOT be nullconfig- parameters to control sdk construction. MUST NOT be null.- Returns:
- a SplitFactory
- Throws:
IOException- if the SDK was being started in 'localhost' mode, but there were problems reading the override file from disk.URISyntaxException
-
main
public static void main(String... args) throws IOException, URISyntaxException
- Throws:
IOExceptionURISyntaxException
-
-