Interface RetrieveFeatureLiveCommandAnswerBuilder.ResponseFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.ditto.things.model.signals.commands.ThingErrorResponse featureNotAccessibleError()
      Creates a ThingErrorResponse specifying that the requested feature does not exist or the requesting user does not have enough permission to retrieve them.
      org.eclipse.ditto.things.model.signals.commands.query.RetrieveFeatureResponse retrieved​(org.eclipse.ditto.things.model.Feature feature)
      Creates a RetrieveFeatureResponse containing the retrieved value for the RetrieveFeature command.
    • Method Detail

      • retrieved

        @Nonnull
        org.eclipse.ditto.things.model.signals.commands.query.RetrieveFeatureResponse retrieved​(org.eclipse.ditto.things.model.Feature feature)
        Creates a RetrieveFeatureResponse containing the retrieved value for the RetrieveFeature command.
        Parameters:
        feature - the value of the requested Feature.
        Returns:
        the response.
        Throws:
        java.lang.NullPointerException - if feature is null.
      • featureNotAccessibleError

        @Nonnull
        org.eclipse.ditto.things.model.signals.commands.ThingErrorResponse featureNotAccessibleError()
        Creates a ThingErrorResponse specifying that the requested feature does not exist or the requesting user does not have enough permission to retrieve them.
        Returns:
        the response.