Interface RetrieveFeatureLiveCommandAnswerBuilder.ResponseFactory
-
- All Superinterfaces:
LiveCommandResponseFactory
- Enclosing interface:
- RetrieveFeatureLiveCommandAnswerBuilder
@ParametersAreNonnullByDefault public static interface RetrieveFeatureLiveCommandAnswerBuilder.ResponseFactory extends LiveCommandResponseFactory
Factory forCommandResponses toRetrieveFeaturecommand.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.ditto.signals.commands.things.ThingErrorResponsefeatureNotAccessibleError()Creates aThingErrorResponsespecifying that the requested feature does not exist or the requesting user does not have enough permission to retrieve them.org.eclipse.ditto.signals.commands.things.query.RetrieveFeatureResponseretrieved(org.eclipse.ditto.model.things.Feature feature)Creates aRetrieveFeatureResponsecontaining the retrieved value for theRetrieveFeaturecommand.-
Methods inherited from interface org.eclipse.ditto.signals.commands.live.base.LiveCommandResponseFactory
errorResponse, errorResponse, errorResponse
-
-
-
-
Method Detail
-
retrieved
@Nonnull org.eclipse.ditto.signals.commands.things.query.RetrieveFeatureResponse retrieved(org.eclipse.ditto.model.things.Feature feature)
Creates aRetrieveFeatureResponsecontaining the retrieved value for theRetrieveFeaturecommand.- Parameters:
feature- the value of the requested Feature.- Returns:
- the response.
- Throws:
NullPointerException- iffeatureisnull.
-
featureNotAccessibleError
@Nonnull org.eclipse.ditto.signals.commands.things.ThingErrorResponse featureNotAccessibleError()
Creates aThingErrorResponsespecifying that the requested feature does not exist or the requesting user does not have enough permission to retrieve them.- Returns:
- the response.
-
-