java.lang.Object
io.helidon.common.http.HashParameters
io.helidon.common.http.HashHeaders
- Direct Known Subclasses:
WriteableBodyPartHeaders
-
Nested Class Summary
Nested classes/interfaces inherited from class io.helidon.common.http.HashParameters
HashParameters.ArrayIterable<T>
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a new empty instance.protected
Creates a new instance populated from the given contents, typically from anotherHashHeaders
instance or a map's entry set.protected
HashHeaders
(Map<String, List<String>> initialContent) Creates a new instance populated from the contents of the provided multi-map. -
Method Summary
Modifier and TypeMethodDescriptionstatic HashHeaders
concat
(Parameters... parameters) Concatenates the contents of the specifiedParameters
into a newHashHeaders
instance.static HashHeaders
concat
(Iterable<Parameters> initialContent) Concatenates the specified contents into a newHashHeaders
instance.static HashHeaders
create()
Creates a new, empty instance.static HashHeaders
create
(Parameters initialContent) Creates a new instance populated with the specifiedParameters
contents.static HashHeaders
Creates a new instance populated with the specified multi-map's contents.Returns an emptyMap
suitable for case-sensitivity or case-insensitivity and optimized for read-only access.protected ConcurrentMap<String,
List<String>> Returns an emptyMap
suitable for case-sensitivity or case-insensitivity and for read-write access.Methods inherited from class io.helidon.common.http.HashParameters
add, add, addAll, all, computeIfAbsent, computeSingleIfAbsent, concat, create, equals, first, hashCode, iterator, put, put, putAll, putIfAbsent, putIfAbsent, remove, toMap, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.helidon.common.http.Parameters
add, add, addAll, computeIfAbsent, computeSingleIfAbsent, first, iterator, put, put, putAll, putIfAbsent, putIfAbsent, remove, toMap
-
Constructor Details
-
HashHeaders
protected HashHeaders()Creates a new empty instance. -
HashHeaders
Creates a new instance populated from the contents of the provided multi-map.- Parameters:
initialContent
- multi-map containing the initial contents to populate the new instance
-
HashHeaders
Creates a new instance populated from the given contents, typically from anotherHashHeaders
instance or a map's entry set.- Parameters:
initialContent
- initial data
-
-
Method Details
-
create
Creates a new, empty instance.- Returns:
- empty instance
-
create
Creates a new instance populated with the specified multi-map's contents.- Parameters:
initialContent
- multi-map containing initial contents for the new instance- Returns:
- new instance filled with a deep copy of the initial contents
-
create
Creates a new instance populated with the specifiedParameters
contents.- Parameters:
initialContent
-Parameters
containing initial contents for the new instance- Returns:
- new instance filled with the names and values of the specified initial contents
-
concat
Concatenates the contents of the specifiedParameters
into a newHashHeaders
instance.- Parameters:
parameters
- zero or moreParameters
instances- Returns:
- new
HashHeaders
containing the names and values from the specified initial parameters
-
concat
Concatenates the specified contents into a newHashHeaders
instance.- Parameters:
initialContent
- zero or moreParameters
instances- Returns:
- new
HashHeaders
containint the names and values from the specified initial content
-
emptyMapForReads
Description copied from class:HashParameters
Returns an emptyMap
suitable for case-sensitivity or case-insensitivity and optimized for read-only access.Typical implementations should not return a concurrent implementation.
- Overrides:
emptyMapForReads
in classHashParameters
- Returns:
- empty
Map
implementation with correct case-sensitivity behavior and optimized for read-only access
-
emptyMapForUpdates
Description copied from class:HashParameters
Returns an emptyMap
suitable for case-sensitivity or case-insensitivity and for read-write access.Typical implementations should return a concurrent implementation.
- Overrides:
emptyMapForUpdates
in classHashParameters
- Returns:
- empty
Map
implementation with correct case-sensitivity behavior and suitable for read-write access
-