public interface ProtocolAdapter
Signal instances to an Adaptable.| Modifier and Type | Method and Description |
|---|---|
org.eclipse.ditto.signals.base.Signal<?> |
fromAdaptable(Adaptable adaptable)
Maps the given
adaptable to the corresponding Signal, which can be a Command,
CommandResponse or an Event. |
HeaderTranslator |
headerTranslator()
Retrieve the header translator responsible for this protocol adapter.
|
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.base.Command<?> command)
Maps the given
command to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.base.Command<?> command,
TopicPath.Channel channel)
Maps the given
command to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.base.CommandResponse<?> commandResponse)
Maps the given
CommandResponse to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.base.CommandResponse<?> commandResponse,
TopicPath.Channel channel)
Maps the given
CommandResponse to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.events.base.Event<?> event)
Maps the given
event to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.events.base.Event<?> event,
TopicPath.Channel channel)
Maps the given
event to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.messages.MessageCommand<?,?> messageCommand)
Maps the given
messageCommand to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.messages.MessageCommandResponse<?,?> messageCommandResponse)
Maps the given
messageCommandResponse to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.base.Signal<?> signal)
Maps the given
Signal to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.things.ThingCommandResponse<?> thingCommandResponse)
Maps the given
ThingCommandResponse to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.things.ThingCommandResponse<?> thingCommandResponse,
TopicPath.Channel channel)
Maps the given
ThingCommandResponse to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.things.ThingErrorResponse thingErrorResponse,
TopicPath.Channel channel)
Maps the given
thingErrorResponse to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.events.things.ThingEvent<?> thingEvent)
Maps the given
thingEvent to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.events.things.ThingEvent<?> thingEvent,
TopicPath.Channel channel)
Maps the given
thingEvent to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.things.modify.ThingModifyCommand<?> thingModifyCommand)
Maps the given
thingModifyCommand to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.things.modify.ThingModifyCommand<?> thingModifyCommand,
TopicPath.Channel channel)
Maps the given
thingModifyCommand to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.things.modify.ThingModifyCommandResponse<?> thingModifyCommandResponse)
Maps the given
thingModifyCommandResponse to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.things.modify.ThingModifyCommandResponse<?> thingModifyCommandResponse,
TopicPath.Channel channel)
Maps the given
thingModifyCommandResponse to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.things.query.ThingQueryCommand<?> thingQueryCommand)
Maps the given
thingQueryCommand to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.things.query.ThingQueryCommand<?> thingQueryCommand,
TopicPath.Channel channel)
Maps the given
thingQueryCommand to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.things.query.ThingQueryCommandResponse<?> thingQueryCommandResponse)
Maps the given
thingQueryCommandResponse to an Adaptable. |
Adaptable |
toAdaptable(org.eclipse.ditto.signals.commands.things.query.ThingQueryCommandResponse<?> thingQueryCommandResponse,
TopicPath.Channel channel)
Maps the given
thingQueryCommandResponse to an Adaptable. |
org.eclipse.ditto.signals.base.Signal<?> fromAdaptable(Adaptable adaptable)
adaptable to the corresponding Signal, which can be a Command,
CommandResponse or an Event.adaptable - the adaptable.Adaptable toAdaptable(org.eclipse.ditto.signals.base.Signal<?> signal)
Signal to an Adaptable.signal - the signal.UnknownSignalException - if the passed Signal was not supported by the ProtocolAdapterAdaptable toAdaptable(org.eclipse.ditto.signals.commands.base.CommandResponse<?> commandResponse)
CommandResponse to an Adaptable.commandResponse - the response.UnknownCommandResponseException - if the passed CommandResponse was not supported by the ProtocolAdapterAdaptable toAdaptable(org.eclipse.ditto.signals.commands.base.CommandResponse<?> commandResponse, TopicPath.Channel channel)
CommandResponse to an Adaptable.commandResponse - the response.channel - the Channel (Twin/Live) to use.UnknownCommandResponseException - if the passed CommandResponse was not supported by the ProtocolAdapterAdaptable toAdaptable(org.eclipse.ditto.signals.commands.things.ThingCommandResponse<?> thingCommandResponse)
ThingCommandResponse to an Adaptable.thingCommandResponse - the response.UnknownCommandResponseException - if the passed ThingCommandResponse was not supported by the
ProtocolAdapterAdaptable toAdaptable(org.eclipse.ditto.signals.commands.things.ThingCommandResponse<?> thingCommandResponse, TopicPath.Channel channel)
ThingCommandResponse to an Adaptable.thingCommandResponse - the response.channel - the Channel (Twin/Live) to use.UnknownCommandResponseException - if the passed ThingCommandResponse was not supported by the
ProtocolAdapterAdaptable toAdaptable(org.eclipse.ditto.signals.commands.messages.MessageCommand<?,?> messageCommand)
messageCommand to an Adaptable.messageCommand - the messageCommand.UnknownCommandException - if the passed MessageCommand was not supported by the ProtocolAdapterAdaptable toAdaptable(org.eclipse.ditto.signals.commands.messages.MessageCommandResponse<?,?> messageCommandResponse)
messageCommandResponse to an Adaptable.messageCommandResponse - the messageCommandResponse.UnknownCommandException - if the passed MessageCommandResponse was not supported by the ProtocolAdapterAdaptable toAdaptable(org.eclipse.ditto.signals.commands.base.Command<?> command)
command to an Adaptable.command - the command.UnknownCommandException - if the passed Command was not supported by the ProtocolAdapterAdaptable toAdaptable(org.eclipse.ditto.signals.commands.base.Command<?> command, TopicPath.Channel channel)
command to an Adaptable.command - the command.channel - the Channel (Twin/Live) to use.UnknownCommandException - if the passed Command was not supported by the ProtocolAdapterAdaptable toAdaptable(org.eclipse.ditto.signals.commands.things.modify.ThingModifyCommand<?> thingModifyCommand)
thingModifyCommand to an Adaptable.thingModifyCommand - the command.Adaptable toAdaptable(org.eclipse.ditto.signals.commands.things.modify.ThingModifyCommand<?> thingModifyCommand, TopicPath.Channel channel)
thingModifyCommand to an Adaptable.thingModifyCommand - the command.channel - the Channel (Twin/Live) to use.Adaptable toAdaptable(org.eclipse.ditto.signals.commands.things.modify.ThingModifyCommandResponse<?> thingModifyCommandResponse)
thingModifyCommandResponse to an Adaptable.thingModifyCommandResponse - the response.Adaptable toAdaptable(org.eclipse.ditto.signals.commands.things.modify.ThingModifyCommandResponse<?> thingModifyCommandResponse, TopicPath.Channel channel)
thingModifyCommandResponse to an Adaptable.thingModifyCommandResponse - the response.channel - the Channel (Twin/Live) to use.Adaptable toAdaptable(org.eclipse.ditto.signals.commands.things.query.ThingQueryCommand<?> thingQueryCommand)
thingQueryCommand to an Adaptable.thingQueryCommand - the command.Adaptable toAdaptable(org.eclipse.ditto.signals.commands.things.query.ThingQueryCommand<?> thingQueryCommand, TopicPath.Channel channel)
thingQueryCommand to an Adaptable.thingQueryCommand - the command.channel - the Channel (Twin/Live) to use.Adaptable toAdaptable(org.eclipse.ditto.signals.commands.things.query.ThingQueryCommandResponse<?> thingQueryCommandResponse)
thingQueryCommandResponse to an Adaptable.thingQueryCommandResponse - the response.Adaptable toAdaptable(org.eclipse.ditto.signals.commands.things.query.ThingQueryCommandResponse<?> thingQueryCommandResponse, TopicPath.Channel channel)
thingQueryCommandResponse to an Adaptable.thingQueryCommandResponse - the response.channel - the Channel (Twin/Live) to use.Adaptable toAdaptable(org.eclipse.ditto.signals.commands.things.ThingErrorResponse thingErrorResponse, TopicPath.Channel channel)
thingErrorResponse to an Adaptable.thingErrorResponse - the error response.channel - the Channel (Twin/Live) to use.Adaptable toAdaptable(org.eclipse.ditto.signals.events.base.Event<?> event)
event to an Adaptable.event - the event.UnknownEventException - if the passed Event was not supported by the ProtocolAdapterAdaptable toAdaptable(org.eclipse.ditto.signals.events.base.Event<?> event, TopicPath.Channel channel)
event to an Adaptable.event - the event.channel - the Channel (Twin/Live) to use.UnknownEventException - if the passed Event was not supported by the ProtocolAdapterAdaptable toAdaptable(org.eclipse.ditto.signals.events.things.ThingEvent<?> thingEvent)
thingEvent to an Adaptable.thingEvent - the event.Adaptable toAdaptable(org.eclipse.ditto.signals.events.things.ThingEvent<?> thingEvent, TopicPath.Channel channel)
thingEvent to an Adaptable.thingEvent - the event.channel - the Channel (Twin/Live) to use.HeaderTranslator headerTranslator()
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.