Class KeyDecryptionOracleStatusPageController

java.lang.Object
net.finmath.decryptionoracle.keys.controller.KeyDecryptionOracleStatusPageController

@Controller @ConditionalOnProperty(name="ethereum.listener.enabled", havingValue="true") public class KeyDecryptionOracleStatusPageController extends Object
Rest endpoint generating a page with the oracle status.
Author:
Christian Fries
  • Constructor Details

    • KeyDecryptionOracleStatusPageController

      public KeyDecryptionOracleStatusPageController(KeyDecryptionOracleStatusService statusService)
      Initiate the controller.
      Parameters:
      statusService - An instance of a oracle status service.
  • Method Details

    • statusPage

      @GetMapping("/oracle/status") public String statusPage(org.springframework.ui.Model model) throws Exception
      Return the web page with the oracle status.
      Parameters:
      model - The model (key-value map from status service)
      Returns:
      The page generated from a template.
      Throws:
      Exception - Any exception.