Interface RetrieveFeatureLiveCommandAnswerBuilder.ResponseFactory
-
- All Superinterfaces:
LiveCommandResponseFactory
- Enclosing interface:
- RetrieveFeatureLiveCommandAnswerBuilder
@ParametersAreNonnullByDefault public static interface RetrieveFeatureLiveCommandAnswerBuilder.ResponseFactory extends LiveCommandResponseFactory
Factory forCommandResponse
s toRetrieveFeature
command.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.ditto.things.model.signals.commands.ThingErrorResponse
featureNotAccessibleError()
Creates aThingErrorResponse
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 aRetrieveFeatureResponse
containing the retrieved value for theRetrieveFeature
command.-
Methods inherited from interface org.eclipse.ditto.client.live.commands.base.LiveCommandResponseFactory
errorResponse, errorResponse
-
-
-
-
Method Detail
-
retrieved
@Nonnull org.eclipse.ditto.things.model.signals.commands.query.RetrieveFeatureResponse retrieved(org.eclipse.ditto.things.model.Feature feature)
Creates aRetrieveFeatureResponse
containing the retrieved value for theRetrieveFeature
command.- Parameters:
feature
- the value of the requested Feature.- Returns:
- the response.
- Throws:
java.lang.NullPointerException
- iffeature
isnull
.
-
featureNotAccessibleError
@Nonnull org.eclipse.ditto.things.model.signals.commands.ThingErrorResponse featureNotAccessibleError()
Creates aThingErrorResponse
specifying that the requested feature does not exist or the requesting user does not have enough permission to retrieve them.- Returns:
- the response.
-
-