public final class WebSocketUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
asDSLElement(String componentName) |
static <T> CompletableFuture<T> |
failedFuture(Throwable t) |
static ListenerPath |
getFullListenerPath(String path,
String basePath) |
static String |
getSocketId(WebSocketsConnector config,
String path) |
static void |
ifRepeatable(InputStream stream,
org.mule.runtime.core.api.util.func.CheckedConsumer<org.mule.runtime.api.streaming.bytes.CursorStream> cursor) |
static String |
pathWithoutEndSlash(String path) |
static String |
resolveFullPath(String basePath,
String path)
Concatenates basePath and path with the expected /basePath/path format.
|
static String |
sanitizePathWithStartSlash(String path) |
public static ListenerPath getFullListenerPath(String path, String basePath)
public static String getSocketId(WebSocketsConnector config, String path)
public static <T> CompletableFuture<T> failedFuture(Throwable t)
public static void ifRepeatable(InputStream stream, org.mule.runtime.core.api.util.func.CheckedConsumer<org.mule.runtime.api.streaming.bytes.CursorStream> cursor)
Copyright © 2024 MuleSoft, Inc.. All rights reserved.