Package io.zenoh.query
Object Parameters.Companion
-
- All Implemented Interfaces:
public class Parameters.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parameters.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final Parametersempty()Creates an empty Parameters. final Parametersfrom(Map<String, String> params)Creates a Parameters instance from the provided map. final Parametersfrom(String params)Attempts to create a Parameters from a string. -
-
Method Detail
-
empty
final Parameters empty()
Creates an empty Parameters.
-
from
final Parameters from(Map<String, String> params)
Creates a Parameters instance from the provided map.
-
from
final Parameters from(String params)
Attempts to create a Parameters from a string.
When in string form, the
parametersshould be encoded like the query section of a URL:parameters are separated by
;,the parameter name and value are separated by the first
=,in the absence of
=, the parameter value is considered to be the empty string,both name and value should use percent-encoding to escape characters,
defining a value for the same parameter name twice is considered undefined behavior and an error result is returned.
-
-
-
-