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 a
BucketConfig.- Since:
- 2.0.0
-
Constructor Summary
Constructors Constructor Description BucketConfigParser() -
Method Summary
Modifier and Type Method Description static BucketConfigparse(String input, CoreEnvironment env, String origin)Parse a raw configuration into aBucketConfig.
-
Constructor Details
-
BucketConfigParser
public BucketConfigParser()
-
-
Method Details
-
parse
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.
-