Class MultiMapUtils

java.lang.Object
de.wuespace.telestion.api.message.MultiMapUtils

public class MultiMapUtils extends Object
Utilities for the Vert.x multimap.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.vertx.core.MultiMap
    from​(io.vertx.core.eventbus.DeliveryOptions options)
    Extracts the Vert.x headers from the DeliveryOptions.
    static io.vertx.core.MultiMap
    from​(io.vertx.core.eventbus.Message<?> message)
    Extracts the Vert.x headers from the Message.
    static io.vertx.core.MultiMap
    merge​(io.vertx.core.MultiMap... maps)
    Merges an array of multi-maps into one multi-map with the addAll function.
    static io.vertx.core.MultiMap
    merge​(List<io.vertx.core.MultiMap> list)
    Merges a list of multi-maps into one multi-map with the addAll function.
    static io.vertx.core.MultiMap
    merge​(Stream<io.vertx.core.MultiMap> stream)
    Merges a stream of multi-maps into one multi-map with the addAll function.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 the addAll 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

      public static io.vertx.core.MultiMap merge(List<io.vertx.core.MultiMap> list)
      Merges a list of multi-maps into one multi-map with the addAll 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

      public static io.vertx.core.MultiMap merge(Stream<io.vertx.core.MultiMap> stream)
      Merges a stream of multi-maps into one multi-map with the addAll 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 the Vert.x headers from the Message.
      Parameters:
      message - the Message that contains the Vert.x headers
      Returns:
      the extracted Vert.x headers
    • from

      public static io.vertx.core.MultiMap from(io.vertx.core.eventbus.DeliveryOptions options)
      Extracts the Vert.x headers from the DeliveryOptions.
      Parameters:
      options - the DeliveryOptions that contain the Vert.x headers
      Returns:
      the extracted Vert.x headers