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.MultiMapfrom(io.vertx.core.eventbus.DeliveryOptions options)Extracts theVert.x headersfrom theDeliveryOptions.static io.vertx.core.MultiMapfrom(io.vertx.core.eventbus.Message<?> message)Extracts theVert.x headersfrom theMessage.static io.vertx.core.MultiMapmerge(io.vertx.core.MultiMap... maps)Merges an array of multi-maps into one multi-map with theaddAllfunction.static io.vertx.core.MultiMapMerges a list of multi-maps into one multi-map with theaddAllfunction.static io.vertx.core.MultiMapMerges a stream of multi-maps into one multi-map with theaddAllfunction.
-
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 theaddAllfunction.- 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 theaddAllfunction.- 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 theaddAllfunction.- 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 headersfrom theMessage.- Parameters:
message- theMessagethat 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 headersfrom theDeliveryOptions.- Parameters:
options- theDeliveryOptionsthat contain theVert.x headers- Returns:
- the extracted
Vert.x headers
-