Package com.couchbase.client.core.config
Class BucketConfigParser
- java.lang.Object
-
- com.couchbase.client.core.config.BucketConfigParser
-
public final class BucketConfigParser extends Object
An abstraction over the bucket parser which takes a raw config as a string and turns it into aBucketConfig
.- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description BucketConfigParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BucketConfig
parse(String input, CoreEnvironment env, String origin)
Parse a raw configuration into aBucketConfig
.
-
-
-
Method Detail
-
parse
public static BucketConfig parse(String input, CoreEnvironment env, String origin)
Parse a raw configuration into aBucketConfig
.- Parameters:
input
- the raw string input.env
- the environment to use.origin
- the origin of the configuration. If null / none provided then localhost is assumed.- Returns:
- the parsed bucket configuration.
-
-