@Test public void testRequestHardResetChargingStationEvent() { requestHandler.handle(new HardResetChargingStationRequestedEvent(CHARGING_STATION_ID, PROTOCOL, ROOT_IDENTITY_CONTEXT), CORRELATION_TOKEN); verify(client).hardReset(CHARGING_STATION_ID); }
@Override public void handle(ConfigurationItemsRequestedEvent event) { LOG.info("Handling ConfigurationItemsRequestedEvent " + event.getChargingStationId()); Map<String, String> configurationItemMap = chargingStationOcpp15Client.getConfiguration(event.getChargingStationId(), event.getKeys()); domainService.receiveConfigurationItems(event.getChargingStationId(), toConfigurationItems(configurationItemMap), event.getKeys(), addOnIdentity); }
Ocpp15RequestHandler implements OcppRequestHandler { @Override public void handle(ConfigurationItemsRequestedEvent event) { LOG.info("Handling ConfigurationItemsRequestedEvent " + event.getChargingStationId()); Map<String, String> configurationItemMap = chargingStationOcpp15Client.getConfiguration(event.getChargingStationId(), event.getKeys()); domainService.receiveConfigurationItems(event.getChargingStationId(), toConfigurationItems(configurationItemMap), event.getKeys(), addOnIdentity); } }
Ocpp15RequestHandler implements OcppRequestHandler { @Override public void handle(ConfigurationItemsRequestedEvent event) { LOG.info("Handling ConfigurationItemsRequestedEvent " + event.getChargingStationId()); Map<String, String> configurationItemMap = chargingStationOcpp15Client.getConfiguration(event.getChargingStationId(), event.getKeys()); domainService.receiveConfigurationItems(event.getChargingStationId(), toConfigurationItems(configurationItemMap), event.getKeys(), addOnIdentity); }  }
Ocpp15RequestHandler implements OcppRequestHandler { @Override public void handle(ConfigurationItemsRequestedEvent event) { LOG.info("Handling ConfigurationItemsRequestedEvent " + event.getChargingStationId()); Map<String, String> configurationItemMap = chargingStationOcpp15Client.getConfiguration(event.getChargingStationId(), event.getKeys()); domainService.receiveConfigurationItems(event.getChargingStationId(), toConfigurationItems(configurationItemMap), event.getKeys(), addOnIdentity); }  @Override void handle(ConfigurationItemsRequestedEvent event); @Override void handle(StopTransactionRequestedEvent event, CorrelationToken correlationToken); @Override void handle(SoftResetChargingStationRequestedEvent event, CorrelationToken correlationToken); @Override void handle(HardResetChargingStationRequestedEvent event, CorrelationToken correlationToken); @Override void handle(StartTransactionRequestedEvent event, CorrelationToken correlationToken); @Override void handle(UnlockEvseRequestedEvent event, CorrelationToken correlationToken); @Override void handle(ChangeChargingStationAvailabilityToInoperativeRequestedEvent event, CorrelationToken correlationToken); @Override void handle(ChangeChargingStationAvailabilityToOperativeRequestedEvent event, @MetaData(CorrelationToken.KEY) CorrelationToken correlationToken); @Override void handle(ChangeComponentAvailabilityToInoperativeRequestedEvent event, @MetaData(CorrelationToken.KEY) CorrelationToken correlationToken); @Override void handle(ChangeComponentAvailabilityToOperativeRequestedEvent event, CorrelationToken correlationToken); @Override void handle(DataTransferRequestedEvent event, CorrelationToken correlationToken); @Override void handle(ChangeConfigurationItemRequestedEvent event, CorrelationToken correlationToken); @Override void handle(DiagnosticsRequestedEvent event, CorrelationToken correlationToken); @Override void handle(ClearCacheRequestedEvent event, CorrelationToken correlationToken); @Override void handle(FirmwareUpdateRequestedEvent event); @Override void handle(AuthorizationListVersionRequestedEvent event, CorrelationToken correlationToken); @Override void handle(SendAuthorizationListRequestedEvent event, CorrelationToken correlationToken); @Override void handle(ReserveNowRequestedEvent event, CorrelationToken correlationToken); @Override void handle(CancelReservationRequestedEvent event, CorrelationToken correlationToken); void setChargingStationOcpp15Client(ChargingStationOcpp15Client chargingStationOcpp15Client); void setDomainService(DomainService domainService); void setAddOnId(String id); }
Ocpp15RequestHandler implements OcppRequestHandler { @Override public void handle(ConfigurationItemsRequestedEvent event) { LOG.info("Handling ConfigurationItemsRequestedEvent " + event.getChargingStationId()); Map<String, String> configurationItemMap = chargingStationOcpp15Client.getConfiguration(event.getChargingStationId(), event.getKeys()); domainService.receiveConfigurationItems(event.getChargingStationId(), toConfigurationItems(configurationItemMap), event.getKeys(), addOnIdentity); }  @Override void handle(ConfigurationItemsRequestedEvent event); @Override void handle(StopTransactionRequestedEvent event, CorrelationToken correlationToken); @Override void handle(SoftResetChargingStationRequestedEvent event, CorrelationToken correlationToken); @Override void handle(HardResetChargingStationRequestedEvent event, CorrelationToken correlationToken); @Override void handle(StartTransactionRequestedEvent event, CorrelationToken correlationToken); @Override void handle(UnlockEvseRequestedEvent event, CorrelationToken correlationToken); @Override void handle(ChangeChargingStationAvailabilityToInoperativeRequestedEvent event, CorrelationToken correlationToken); @Override void handle(ChangeChargingStationAvailabilityToOperativeRequestedEvent event, @MetaData(CorrelationToken.KEY) CorrelationToken correlationToken); @Override void handle(ChangeComponentAvailabilityToInoperativeRequestedEvent event, @MetaData(CorrelationToken.KEY) CorrelationToken correlationToken); @Override void handle(ChangeComponentAvailabilityToOperativeRequestedEvent event, CorrelationToken correlationToken); @Override void handle(DataTransferRequestedEvent event, CorrelationToken correlationToken); @Override void handle(ChangeConfigurationItemRequestedEvent event, CorrelationToken correlationToken); @Override void handle(DiagnosticsRequestedEvent event, CorrelationToken correlationToken); @Override void handle(ClearCacheRequestedEvent event, CorrelationToken correlationToken); @Override void handle(FirmwareUpdateRequestedEvent event); @Override void handle(AuthorizationListVersionRequestedEvent event, CorrelationToken correlationToken); @Override void handle(SendAuthorizationListRequestedEvent event, CorrelationToken correlationToken); @Override void handle(ReserveNowRequestedEvent event, CorrelationToken correlationToken); @Override void handle(CancelReservationRequestedEvent event, CorrelationToken correlationToken); void setChargingStationOcpp15Client(ChargingStationOcpp15Client chargingStationOcpp15Client); void setDomainService(DomainService domainService); void setAddOnId(String id); static final String PROTOCOL_IDENTIFIER; static final String ADD_ON_TYPE; }