public interface TopicPath
A TopicPath complies with the scheme
<namespace>/<id>/<group>/<channel>/<criterion>/<action>
for example org.eclipse.ditto/myThing/things/twin/commands/modify
| Modifier and Type | Interface and Description |
|---|---|
static class |
TopicPath.Action
An enumeration of topic path actions.
|
static class |
TopicPath.Channel
An enumeration of topic path channel.
|
static class |
TopicPath.Criterion
An enumeration of topic path criteria.
|
static class |
TopicPath.Group
An enumeration of topic path groups.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ID_PLACEHOLDER |
| Modifier and Type | Method and Description |
|---|---|
static TopicPathBuilder |
fromNamespace(String namespace)
Returns a mutable builder to create immutable
TopicPath instances for a given namespace. |
Optional<TopicPath.Action> |
getAction()
Returns an
Optional for an action part of this TopicPath. |
TopicPath.Channel |
getChannel()
Returns the channel part of this
TopicPath. |
TopicPath.Criterion |
getCriterion()
Returns the criterion part of this
TopicPath. |
TopicPath.Group |
getGroup()
Returns the group part of this
TopicPath. |
String |
getId()
Returns the id part of this
TopicPath. |
String |
getNamespace()
Returns the namespace part of this
TopicPath. |
String |
getPath()
Returns the path of this
TopicPath. |
Optional<String> |
getSubject()
Returns an
Optional for a subject part of this TopicPath. |
default boolean |
isWildcardTopic() |
static TopicPathBuilder |
newBuilder(String thingId)
Deprecated.
Thing ID is now typed. Use
newBuilder(org.eclipse.ditto.model.things.ThingId) instead. |
static TopicPathBuilder |
newBuilder(org.eclipse.ditto.model.things.ThingId thingId)
Returns a mutable builder to create immutable
TopicPath instances for a given thingId. |
static final String ID_PLACEHOLDER
@Deprecated static TopicPathBuilder newBuilder(String thingId)
newBuilder(org.eclipse.ditto.model.things.ThingId) instead.TopicPath instances for a given thingId.thingId - the identifier of the Thing.NullPointerException - if thingId is null.static TopicPathBuilder newBuilder(org.eclipse.ditto.model.things.ThingId thingId)
TopicPath instances for a given thingId.thingId - the identifier of the Thing.NullPointerException - if thingId is null.static TopicPathBuilder fromNamespace(String namespace)
TopicPath instances for a given namespace.namespace - the namespace.NullPointerException - if namespace is null.String getNamespace()
TopicPath.TopicPath.Group getGroup()
TopicPath.TopicPath.Channel getChannel()
TopicPath.TopicPath.Criterion getCriterion()
TopicPath.Optional<TopicPath.Action> getAction()
Optional for an action part of this TopicPath.Optional<String> getSubject()
Optional for a subject part of this TopicPath.String getId()
TopicPath.String getPath()
TopicPath.default boolean isWildcardTopic()
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.