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
ConstructorsModifierConstructorDescriptionprotectedCreates a new empty instance.protectedCreates a new instance populated from the given contents, typically from anotherHashHeadersinstance or a map's entry set.protectedHashHeaders(Map<String, List<String>> initialContent) Creates a new instance populated from the contents of the provided multi-map. -
Method Summary
Modifier and TypeMethodDescriptionstatic HashHeadersconcat(Parameters... parameters) Concatenates the contents of the specifiedParametersinto a newHashHeadersinstance.static HashHeadersconcat(Iterable<Parameters> initialContent) Concatenates the specified contents into a newHashHeadersinstance.static HashHeaderscreate()Creates a new, empty instance.static HashHeaderscreate(Parameters initialContent) Creates a new instance populated with the specifiedParameterscontents.static HashHeadersCreates a new instance populated with the specified multi-map's contents.Returns an emptyMapsuitable for case-sensitivity or case-insensitivity and optimized for read-only access.protected ConcurrentMap<String,List<String>> Returns an emptyMapsuitable 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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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 anotherHashHeadersinstance 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 specifiedParameterscontents.- Parameters:
initialContent-Parameterscontaining 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 specifiedParametersinto a newHashHeadersinstance.- Parameters:
parameters- zero or moreParametersinstances- Returns:
- new
HashHeaderscontaining the names and values from the specified initial parameters
-
concat
Concatenates the specified contents into a newHashHeadersinstance.- Parameters:
initialContent- zero or moreParametersinstances- Returns:
- new
HashHeaderscontainint the names and values from the specified initial content
-
emptyMapForReads
Description copied from class:HashParametersReturns an emptyMapsuitable for case-sensitivity or case-insensitivity and optimized for read-only access.Typical implementations should not return a concurrent implementation.
- Overrides:
emptyMapForReadsin classHashParameters- Returns:
- empty
Mapimplementation with correct case-sensitivity behavior and optimized for read-only access
-
emptyMapForUpdates
Description copied from class:HashParametersReturns an emptyMapsuitable for case-sensitivity or case-insensitivity and for read-write access.Typical implementations should return a concurrent implementation.
- Overrides:
emptyMapForUpdatesin classHashParameters- Returns:
- empty
Mapimplementation with correct case-sensitivity behavior and suitable for read-write access
-