Package org.eclipse.ditto.protocoladapter
The Ditto Protocol Adapter provides a wrapper for the Ditto internal protocol. This package provides the
corresponding interfaces as well as implementations.
Please note that Ditto Protocol Adapter is designed for immutability. Therefore each object is immutable and thus thread safe. If interfaces provide methods for altering an object then invoking this method does not change the state of that object but a new object with the altered state is returned instead. This is the same behavior like it is shown by java.lang.String for example.
-
Interface Summary Interface Description AcknowledgementTopicPathBuilder Builder to create a topic path for Acknowledgements.Adaptable AnAdaptable
can be mapped to and from aCommand
,CommandResponse
orEvent
.AdaptableBuilder A builder to createAdaptable
instances.Adapter<T extends org.eclipse.ditto.model.base.json.Jsonifiable<?>> CommandsTopicPathBuilder Builder to create a topic path for commands.ErrorResponseAdapter<T extends org.eclipse.ditto.signals.commands.base.ErrorResponse<?>> AnAdapter
mixin for error responses.EventAdapter<T extends org.eclipse.ditto.signals.events.base.Event<?>> EventsTopicPathBuilder Builder to create a topic path for events.JsonifiableAdaptable Adaptable
which is alsoJsonifiable
(e.g.JsonifiableMapper<T extends org.eclipse.ditto.model.base.json.Jsonifiable> Functional interface for mapping anAdaptable
toJsonifiableMapper
.MessagePath Represent thepath
field of Ditto protocol messages.MessagesTopicPathBuilder Builder to create a topic path for messages.ModifyCommandAdapter<T extends org.eclipse.ditto.signals.commands.base.Command<?>> AnAdapter
mixin for modify commands.ModifyCommandResponseAdapter<T extends org.eclipse.ditto.signals.commands.base.CommandResponse<?>> AnAdapter
mixin for modify command responses.Payload Represents thePayload
of anAdaptable
.PayloadBuilder A builder to createPayload
instances.PayloadPathMatcher Matches and maps the path to an internal command name.ProtocolAdapter A protocol adapter provides methods for mappingSignal
instances to anAdaptable
.QueryCommandAdapter<T extends org.eclipse.ditto.signals.commands.base.Command<?>> AnAdapter
mixin for query commands.QueryCommandResponseAdapter<T extends org.eclipse.ditto.signals.commands.base.CommandResponse<?>> AnAdapter
mixin for retrieve command responses.SearchTopicPathBuilder Builder to create a topic path for commands.TopicPath Represents the path of a topic for the Ditto Protocol.TopicPathBuildable Provides a build method to actually build a topic path.TopicPathBuilder A builder to createTopicPath
instances. -
Class Summary Class Description AbstractAdapter<T extends org.eclipse.ditto.model.base.json.Jsonifiable.WithPredicate<org.eclipse.ditto.json.JsonObject,org.eclipse.ditto.json.JsonField>> Abstract implementation ofAdapter
to provide common functionality.AbstractErrorResponseAdapter<T extends org.eclipse.ditto.signals.commands.base.ErrorResponse<T>> Adapter for mapping aErrorResponse
to and from anAdaptable
.DefaultPayloadPathMatcher Utility class for matchingPayload
path.DittoEncodingHelper Utility for encoding/decoding parts used in names / IDs in Ditto, e.g.DittoProtocolAdapter Adapter for the Ditto protocol.HeaderTranslator Utility for translating Headers from external sources or to external sources.JsonifiableAdaptable.JsonFields Json Fields of the Jsonifiable PlainJsonAdaptable.Payload.JsonFields Json Fields of the Jsonifiable Payload.ProtocolFactory Factory for the Protocol Adapter library.UnknownChannelException.Builder A mutable builder with a fluent API for aUnknownChannelException
.UnknownCommandException.Builder A mutable builder with a fluent API for aUnknownCommandException
.UnknownCommandResponseException.Builder A mutable builder with a fluent API for aUnknownCommandResponseException
.UnknownEventException.Builder A mutable builder with a fluent API for aUnknownEventException
.UnknownPathException.Builder A mutable builder with a fluent API for aUnknownPathException
.UnknownSignalException.Builder A mutable builder with a fluent API for aUnknownSignalException
.UnknownTopicPathException.Builder A mutable builder with a fluent API for aUnknownTopicPathException
. -
Enum Summary Enum Description TopicPath.Action An enumeration of topic path actions.TopicPath.Channel An enumeration of topic path channel.TopicPath.Criterion An enumeration of topic path criteria.TopicPath.Group An enumeration of topic path groups.TopicPath.SearchAction An enumeration of topic path search-actions. -
Exception Summary Exception Description UnknownChannelException Thrown if aTopicPath.Channel
is not supported in combination with the providedSignal
.UnknownCommandException Thrown if aCommand
is not supported.UnknownCommandResponseException Thrown if aCommandResponse
is not supported.UnknownEventException Thrown if aEvent
is not supported.UnknownPathException Thrown if a path does not correspond to any known command, response or event.UnknownSignalException Thrown if aSignal
is not supported.UnknownTopicPathException Thrown if aTopicPath
is not supported.