Interface LiveCommandResponseFactory
-
- All Known Subinterfaces:
CreateThingLiveCommandAnswerBuilder.ResponseFactory,DeleteAttributeLiveCommandAnswerBuilder.ResponseFactory,DeleteAttributesLiveCommandAnswerBuilder.ResponseFactory,DeleteFeatureDefinitionLiveCommandAnswerBuilder.ResponseFactory,DeleteFeatureLiveCommandAnswerBuilder.ResponseFactory,DeleteFeaturePropertiesLiveCommandAnswerBuilder.ResponseFactory,DeleteFeaturePropertyLiveCommandAnswerBuilder.ResponseFactory,DeleteFeaturesLiveCommandAnswerBuilder.ResponseFactory,DeleteThingLiveCommandAnswerBuilder.ResponseFactory,ModifyAttributeLiveCommandAnswerBuilder.ResponseFactory,ModifyAttributesLiveCommandAnswerBuilder.ResponseFactory,ModifyFeatureDefinitionLiveCommandAnswerBuilder.ResponseFactory,ModifyFeatureLiveCommandAnswerBuilder.ResponseFactory,ModifyFeaturePropertiesLiveCommandAnswerBuilder.ResponseFactory,ModifyFeaturePropertyLiveCommandAnswerBuilder.ResponseFactory,ModifyFeaturesLiveCommandAnswerBuilder.ResponseFactory,ModifyThingLiveCommandAnswerBuilder.ResponseFactory,RetrieveAttributeLiveCommandAnswerBuilder.ResponseFactory,RetrieveAttributesLiveCommandAnswerBuilder.ResponseFactory,RetrieveFeatureDefinitionLiveCommandAnswerBuilder.ResponseFactory,RetrieveFeatureLiveCommandAnswerBuilder.ResponseFactory,RetrieveFeaturePropertiesLiveCommandAnswerBuilder.ResponseFactory,RetrieveFeaturePropertyLiveCommandAnswerBuilder.ResponseFactory,RetrieveFeaturesLiveCommandAnswerBuilder.ResponseFactory,RetrieveThingLiveCommandAnswerBuilder.ResponseFactory,RetrieveThingsLiveCommandAnswerBuilder.ResponseFactory
public interface LiveCommandResponseFactoryBase for factories ofCommandResponses which createCommandResponses for incomingCommands.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default org.eclipse.ditto.signals.commands.things.ThingErrorResponseerrorResponse(String thingId, org.eclipse.ditto.model.base.exceptions.DittoRuntimeException dittoRuntimeException)Deprecated.Thing ID is now typed.default org.eclipse.ditto.signals.commands.things.ThingErrorResponseerrorResponse(org.eclipse.ditto.model.base.exceptions.DittoRuntimeException dittoRuntimeException)Creates a genericErrorResponsewhich includes the passedDittoRuntimeException.default org.eclipse.ditto.signals.commands.things.ThingErrorResponseerrorResponse(org.eclipse.ditto.model.things.ThingId thingId, org.eclipse.ditto.model.base.exceptions.DittoRuntimeException dittoRuntimeException)Creates a genericErrorResponsewhich includes the passedDittoRuntimeException.
-
-
-
Method Detail
-
errorResponse
default org.eclipse.ditto.signals.commands.things.ThingErrorResponse errorResponse(org.eclipse.ditto.model.base.exceptions.DittoRuntimeException dittoRuntimeException)
Creates a genericErrorResponsewhich includes the passedDittoRuntimeException.Use this method only if you are absolutely sure that the counterpart which issued the
Commandexpects such a type ofErrorResponsefor the issuedCommand.- Parameters:
dittoRuntimeException- the DittoRuntimeException to include in the ErrorResponse.- Returns:
- the built ErrorResponse.
- Throws:
NullPointerException- ifDittoRuntimeExceptionisnull.
-
errorResponse
@Deprecated default org.eclipse.ditto.signals.commands.things.ThingErrorResponse errorResponse(String thingId, org.eclipse.ditto.model.base.exceptions.DittoRuntimeException dittoRuntimeException)
Deprecated.Thing ID is now typed. UseerrorResponse(org.eclipse.ditto.model.things.ThingId, org.eclipse.ditto.model.base.exceptions.DittoRuntimeException)instead.Creates a genericErrorResponsewhich includes the passedDittoRuntimeException.Use this method only if you are absolutely sure that the counterpart which issued the
Commandexpects such a type ofErrorResponsefor the issuedCommand.- Parameters:
thingId- the Thing ID of the related Thing.dittoRuntimeException- the DittoRuntimeException to include in the ErrorResponse.- Returns:
- the built ErrorResponse.
- Throws:
NullPointerException- ifdittoRuntimeExceptionisnull.
-
errorResponse
default org.eclipse.ditto.signals.commands.things.ThingErrorResponse errorResponse(org.eclipse.ditto.model.things.ThingId thingId, org.eclipse.ditto.model.base.exceptions.DittoRuntimeException dittoRuntimeException)Creates a genericErrorResponsewhich includes the passedDittoRuntimeException.Use this method only if you are absolutely sure that the counterpart which issued the
Commandexpects such a type ofErrorResponsefor the issuedCommand.- Parameters:
thingId- the Thing ID of the related Thing.dittoRuntimeException- the DittoRuntimeException to include in the ErrorResponse.- Returns:
- the built ErrorResponse.
- Throws:
NullPointerException- ifdittoRuntimeExceptionisnull.
-
-