public final class Topic extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Topic.Segment |
| Modifier and Type | Method and Description |
|---|---|
Topic |
append(Topic.Segment segment) |
static Topic |
application(String application) |
Topic |
attach(String key,
String value)
Attach information to the local topic context
|
Topic |
attachAll(Map<String,String> topicContext) |
static Topic |
device(String localTopic) |
static Topic |
from(List<Topic.Segment> segments) |
static Topic |
fromString(String topic) |
Map<String,String> |
getContext() |
List<Topic.Segment> |
getSegments() |
Topic |
localize(Topic otherTopic) |
Topic |
localize(Topic otherTopic,
Map<String,String> topicContext) |
static Topic |
notify(String requesterClientId,
String... resource) |
String |
render() |
String |
render(int fromIndex,
int toIndex)
Renders all tokens from
fromIndex (inclusive) to toIndex
(exclusive) |
String |
render(int fromIndex,
int toIndex,
Map<String,String> context)
Renders all tokens from
fromIndex (inclusive) to toIndex
(exclusive) |
String |
render(Map<String,String> context) |
String |
renderSegment(Topic.Segment segment,
Map<String,String> context) |
static Topic |
reply(String requesterClientId,
String requestId) |
String |
toString() |
public List<Topic.Segment> getSegments()
public String renderSegment(Topic.Segment segment, Map<String,String> context)
public String render(int fromIndex, int toIndex, Map<String,String> context)
fromIndex (inclusive) to toIndex
(exclusive)fromIndex - first item to rendertoIndex - first item not to rendercontext - the additional context to usepublic String render()
public String render(int fromIndex, int toIndex)
fromIndex (inclusive) to toIndex
(exclusive)fromIndex - first item to rendertoIndex - first item not to renderpublic static Topic from(List<Topic.Segment> segments)
public Topic append(Topic.Segment segment)
public Topic attach(String key, String value)
key - the key of the valuevalue - the value to attachCopyright © 2017. All rights reserved.