Class PingController

java.lang.Object
net.solarnetwork.central.web.PingController

public class PingController extends Object
A web controller for running a set of PingTest tests and returning the results.
  • Constructor Details

    • PingController

      public PingController(List<net.solarnetwork.service.PingTest> tests)
      Constructor.
      Parameters:
      tests - the tests
  • Method Details

    • executePingTest

      @RequestMapping(value="", method=GET, produces="application/json") @ResponseBody public net.solarnetwork.web.jakarta.domain.Response<PingController.PingResults> executePingTest()
    • executePingTest

      @RequestMapping(value="", method=GET, produces="text/html") public String executePingTest(org.springframework.ui.Model model)
    • getTests

      public List<net.solarnetwork.service.PingTest> getTests()
      Get the ping tests.
      Returns:
      the tests