protected DittoProtocolAdapter(final AbstractErrorRegistry<DittoRuntimeException> errorRegistry, final HeaderTranslator headerTranslator) { this.errorRegistry = errorRegistry; this.messageCommandAdapter = MessageCommandAdapter.of(headerTranslator); this.messageCommandResponseAdapter = MessageCommandResponseAdapter.of(headerTranslator); this.thingModifyCommandAdapter = ThingModifyCommandAdapter.of(headerTranslator); this.thingModifyCommandResponseAdapter = ThingModifyCommandResponseAdapter.of(headerTranslator); this.thingQueryCommandAdapter = ThingQueryCommandAdapter.of(headerTranslator); this.thingQueryCommandResponseAdapter = ThingQueryCommandResponseAdapter.of(headerTranslator); this.thingEventAdapter = ThingEventAdapter.of(headerTranslator); this.headerTranslator = headerTranslator; }
protected DittoProtocolAdapter(final AbstractErrorRegistry<DittoRuntimeException> errorRegistry, final HeaderTranslator headerTranslator) { this.errorRegistry = errorRegistry; this.messageCommandAdapter = MessageCommandAdapter.of(headerTranslator); this.messageCommandResponseAdapter = MessageCommandResponseAdapter.of(headerTranslator); this.thingModifyCommandAdapter = ThingModifyCommandAdapter.of(headerTranslator); this.thingModifyCommandResponseAdapter = ThingModifyCommandResponseAdapter.of(headerTranslator); this.thingQueryCommandAdapter = ThingQueryCommandAdapter.of(headerTranslator); this.thingQueryCommandResponseAdapter = ThingQueryCommandResponseAdapter.of(headerTranslator); this.thingEventAdapter = ThingEventAdapter.of(headerTranslator); this.headerTranslator = headerTranslator; }