Interface RetrieveFeatureDefinitionLiveCommandAnswerBuilder.ResponseFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.ditto.things.model.signals.commands.ThingErrorResponse featureDefinitionNotAccessibleError()
      Creates a ThingErrorResponse specifying that no Feature Definition exist or the requesting user does not have enough permission to retrieve it.
      org.eclipse.ditto.things.model.signals.commands.query.RetrieveFeatureDefinitionResponse retrieved​(org.eclipse.ditto.things.model.FeatureDefinition featureDefinition)
      Creates a RetrieveFeatureDefinitionResponse containing the retrieved value for the RetrieveFeatureDefinition command.
    • Method Detail

      • retrieved

        org.eclipse.ditto.things.model.signals.commands.query.RetrieveFeatureDefinitionResponse retrieved​(org.eclipse.ditto.things.model.FeatureDefinition featureDefinition)
        Creates a RetrieveFeatureDefinitionResponse containing the retrieved value for the RetrieveFeatureDefinition command.
        Parameters:
        featureDefinition - the value of the requested Feature Definition
        Returns:
        a response containing the requested value
        Throws:
        java.lang.NullPointerException - if featureDefinition is null
      • featureDefinitionNotAccessibleError

        org.eclipse.ditto.things.model.signals.commands.ThingErrorResponse featureDefinitionNotAccessibleError()
        Creates a ThingErrorResponse specifying that no Feature Definition exist or the requesting user does not have enough permission to retrieve it.
        Returns:
        the error response