Class ConnectionStrings
java.lang.Object
io.debezium.connector.mongodb.connection.ConnectionStrings
Host string parsing utilities
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PatternRegular expression that extracts the hosts for the replica sets. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringappendParameter(String connectionString, String name, String value) Appends new parameter to connection stringstatic StringbuildFromHosts(String hosts) private static StringconnectionString(String rsName, String host) static StringMask credential information in connection stringparseFromHosts(String hosts)
-
Field Details
-
HOST_PATTERN
Regular expression that extracts the hosts for the replica sets. The raw expression is(([^/]+)\/))?(.+).
-
-
Constructor Details
-
ConnectionStrings
private ConnectionStrings()
-
-
Method Details
-
parseFromHosts
-
buildFromHosts
-
appendParameter
Appends new parameter to connection string- Parameters:
connectionString- original connection stringname- parameter namevalue- parameter value- Returns:
- new connection string with added parameter
-
mask
Mask credential information in connection string- Parameters:
connectionString- original connection string- Returns:
- connection string with masked credential information
-
connectionString
-
matcher
-