class Iec60870InterrogationCommandAsduHandler extends Iec60870AsduHandler {

    @Override
    public void handleAsdu(final Connection connection, final ASdu asdu) throws IOException {
        LOGGER.info("Received interrogation command. Sending confirmation for ASDU: {}", asdu);
        connection.sendConfirmation(asdu);

        final ASdu responseAsdu = this.iec60870AsduFactory.createInterrogationCommandResponseAsdu();
        LOGGER.info("Processing interrogation command. Sending response ASDU: {}.", responseAsdu);
        connection.send(responseAsdu);

        final ASdu terminationAsdu = this.iec60870AsduFactory.createActivationTerminationResponseAsdu();
        LOGGER.info("Finished processing interrogation command. Sending termination ASDU: {}", terminationAsdu);
        connection.send(terminationAsdu);

    }

    @Autowired public  Iec60870InterrogationCommandAsduHandler(final Iec60870AsduFactory iec60870AsduFactory);

}