Class VertxWebsocketHelper

java.lang.Object
org.apache.camel.component.vertx.websocket.VertxWebsocketHelper

public final class VertxWebsocketHelper extends Object
  • Method Details

    • createHostKey

      public static VertxWebsocketHostKey createHostKey(URI websockerURI)
      Creates a VertxWebsocketHostKey from a given VertxWebsocketConfiguration
    • appendHeader

      public static void appendHeader(Map<String,Object> headers, String key, Object value)
      Appends a header value to exchange headers, using a List if there are multiple items for the same key
    • webSocketHostPathMatches

      public static boolean webSocketHostPathMatches(String hostPath, String targetPath)
      Determines whether the path of a WebSocket host (the vertx-websocket consumer) matches a target path (the vertx-websocket producer), taking path parameters and wildcard paths into consideration.