Package org.openhab.core.thing.util
Class ThingWebClientUtil
java.lang.Object
org.openhab.core.thing.util.ThingWebClientUtil
ThingWebClientUtil
provides an utility method to create a valid consumer name for web clients.- Author:
- Laurent Garnier - Initial contribution
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
buildWebClientConsumerName
(ThingUID uid, @Nullable String prefix) Build a valid consumer name for HTTP or WebSocket client.
-
Constructor Details
-
ThingWebClientUtil
public ThingWebClientUtil()
-
-
Method Details
-
buildWebClientConsumerName
Build a valid consumer name for HTTP or WebSocket client.- Parameters:
uid
- thing UID for which to associate HTTP or WebSocket clientprefix
- a prefix to consider for the name; can be null- Returns:
- a valid consumer name
-