Class PingController

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

@RequestMapping("/ping") public class PingController extends Object
A web controller for running a set of PingTest tests and returning the results.
Since:
2.3
Version:
1.0
Author:
matt
  • Constructor Details

    • PingController

      public PingController()
  • Method Details

    • executePingTest

      @RequestMapping(value="", method=GET, produces="application/json") @ResponseBody public Response<PingController.PingResults> executePingTest()
      Execute all available ping tests, returning JSON.
      Returns:
      the JSON result
    • executePingTest

      @RequestMapping(value="", method=GET, produces="text/html") public String executePingTest(org.springframework.ui.Model model)
      Execute all available ping tests, returning HTML.
      Parameters:
      model - the model
      Returns:
      the HTML view: ping
    • getTests

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

      public void setTests(List<net.solarnetwork.service.PingTest> tests)
      Set the tests.
      Parameters:
      tests - the tests