Class MultiMapUtils
java.lang.Object
de.wuespace.telestion.api.message.MultiMapUtils
Utilities for the
Vert.x multimap
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.vertx.core.MultiMap
from(io.vertx.core.eventbus.DeliveryOptions options)
Extracts theVert.x headers
from theDeliveryOptions
.static io.vertx.core.MultiMap
from(io.vertx.core.eventbus.Message<?> message)
Extracts theVert.x headers
from theMessage
.static io.vertx.core.MultiMap
merge(io.vertx.core.MultiMap... maps)
Merges an array of multi-maps into one multi-map with theaddAll
function.static io.vertx.core.MultiMap
Merges a list of multi-maps into one multi-map with theaddAll
function.static io.vertx.core.MultiMap
Merges a stream of multi-maps into one multi-map with theaddAll
function.
-
Constructor Details
-
MultiMapUtils
public MultiMapUtils()
-
-
Method Details
-
merge
public static io.vertx.core.MultiMap merge(io.vertx.core.MultiMap... maps)Merges an array of multi-maps into one multi-map with theaddAll
function.- Parameters:
maps
- multi-maps that you want to merge- Returns:
- a new multi-map with the merged content of the other multi-maps
-
merge
Merges a list of multi-maps into one multi-map with theaddAll
function.- Parameters:
list
- multi-maps that you want to merge- Returns:
- a new multi-map with the merged content of the other multi-maps
-
merge
Merges a stream of multi-maps into one multi-map with theaddAll
function.- Parameters:
stream
- a stream that contains the multi-maps that you want to merge- Returns:
- a new multi-map with the merged content of the other multi-maps
-
from
public static io.vertx.core.MultiMap from(io.vertx.core.eventbus.Message<?> message)Extracts theVert.x headers
from theMessage
.- Parameters:
message
- theMessage
that contains theVert.x headers
- Returns:
- the extracted
Vert.x headers
-
from
public static io.vertx.core.MultiMap from(io.vertx.core.eventbus.DeliveryOptions options)Extracts theVert.x headers
from theDeliveryOptions
.- Parameters:
options
- theDeliveryOptions
that contain theVert.x headers
- Returns:
- the extracted
Vert.x headers
-