@DoNotImplement public interface MqttSharedTopicFilter extends MqttTopicFilter
A Shared Topic Filter consists of the share prefix ("$share/"), a Share Name and a Topic Filter.
The Share Name has the same requirements as an UTF-8 encoded string
. Additionally it
The Topic Filter has the same restrictions as a Topic Filter
.
Modifier and Type | Field and Description |
---|---|
static @NotNull String |
SHARE_PREFIX
The prefix of a Shared Topic Filter.
|
MULTI_LEVEL_WILDCARD, SINGLE_LEVEL_WILDCARD
Modifier and Type | Method and Description |
---|---|
static @NotNull MqttSharedTopicFilterBuilder |
builder(@NotNull String shareName)
Creates a builder for a Shared Topic Filter.
|
MqttSharedTopicFilterBuilder.Complete |
extendShared()
Creates a builder for extending this Shared Topic Filter.
|
@NotNull String |
getShareName() |
@NotNull MqttTopicFilter |
getTopicFilter() |
static @NotNull MqttSharedTopicFilter |
of(@NotNull String shareName,
@NotNull String topicFilter)
Validates and creates a Shared Topic Filter of the given Share Name and Topic Filter.
|
builder, containsMultiLevelWildcard, containsSingleLevelWildcard, containsWildcards, extend, getLevels, isShared, matches, matches, of, share
containsShouldNotCharacters, toByteBuffer
compareTo
@NotNull static final @NotNull String SHARE_PREFIX
@NotNull static @NotNull MqttSharedTopicFilter of(@NotNull @NotNull String shareName, @NotNull @NotNull String topicFilter)
shareName
- the string representation of the Share Name.topicFilter
- the string representation of the Topic Filter.IllegalArgumentException
- if the Share Name string is not a valid Share Name or the Topic Filter string is
not a valid Topic Filter.@NotNull static @NotNull MqttSharedTopicFilterBuilder builder(@NotNull @NotNull String shareName)
shareName
- the string representation of the Share Name.@NotNull @NotNull String getShareName()
@NotNull @NotNull MqttTopicFilter getTopicFilter()
MqttSharedTopicFilterBuilder.Complete extendShared()