ConnectionUtils class
A set of utility functions to process connection parameters
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
composeUri(
ConfigParams options, String? defaultProtocol, int? defaultPort) → String - Composes URI from config parameters. The result URI will be in the following form: protocol://username@password@host1:port1,host2:port2,...?param1=abc¶m2=xyz&...
-
concat(
ConfigParams options1, ConfigParams options2, [List< String>? keys]) → ConfigParams - Concatinates two options by combining duplicated properties into comma-separated list
-
concatValues(
String? value1, String? value2) → String? -
exclude(
ConfigParams options, List< String>? keys) → ConfigParams - Excludes specified keys from the config parameters.
-
include(
ConfigParams options, List< String>? keys) → ConfigParams - Includes specified keys from the config parameters.
-
parseUri(
String? uri, String defaultProtocol, int defaultPort) → ConfigParams - Parses URI into config parameters. The URI shall be in the following form: protocol://username@password@host1:port1,host2:port2,...?param1=abc¶m2=xyz&...
-
rename(
ConfigParams options, String fromName, String toName) → ConfigParams - Renames property if the target name is not used.