Interface UriQuery.Copyable

All Superinterfaces:
Parameters, UriQuery
Enclosing interface:
UriQuery

public static interface UriQuery.Copyable extends UriQuery
A Helidon query that can provide an independent snapshot of its parameter state. This retains entries that cannot be reconstructed from UriQuery.rawValue(), such as raw parameters whose value lists have been cleared.
  • Method Details

    • copy

      UriQuery copy()
      Copy the current raw and decoded parameters independently, including raw names, empty entries, and edits made through parameter lists. The returned query and this query must not share mutable state. The raw query serialization may be normalized. Implementations should return a standard query created using UriQueryWriteable.create() so that its complete parameter state can be copied without serialization. A non-standard snapshot should expose every serialized raw parameter name through UriQuery.getAllRaw(String) using the same encoded spelling to retain each raw alias.
      Returns:
      independent parameter-state snapshot