Interface RetrieveThingLiveCommandAnswerBuilder.ResponseFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.ditto.signals.commands.things.query.RetrieveThingResponse retrieved​(org.eclipse.ditto.model.things.Thing thing)
      Creates a success response containing the retrieved value for the RetrieveThing command.
      org.eclipse.ditto.signals.commands.things.ThingErrorResponse thingNotAccessibleError()
      Creates an error response specifying that the requested Thing does not exist or the requesting user does not have enough permission to retrieve it.
    • Method Detail

      • retrieved

        @Nonnull
        org.eclipse.ditto.signals.commands.things.query.RetrieveThingResponse retrieved​(org.eclipse.ditto.model.things.Thing thing)
        Creates a success response containing the retrieved value for the RetrieveThing command.
        Parameters:
        thing - the value of the requested Thing.
        Returns:
        the response.
        Throws:
        NullPointerException - if thing is null.
      • thingNotAccessibleError

        @Nonnull
        org.eclipse.ditto.signals.commands.things.ThingErrorResponse thingNotAccessibleError()
        Creates an error response specifying that the requested Thing does not exist or the requesting user does not have enough permission to retrieve it.
        Returns:
        the response.