Package com.couchbase.client.core.config
Class BucketConfigParser
java.lang.Object
com.couchbase.client.core.config.BucketConfigParser
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic BucketConfig
parse
(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.
-