Package net.solarnetwork.web.support
Class PingController
java.lang.Object
net.solarnetwork.web.support.PingController
A web controller for running a set of
PingTest tests and returning
the results.- Since:
- 2.3
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn overall test results class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecute all available ping tests, returning JSON.executePingTest(org.springframework.ui.Model model) Execute all available ping tests, returning HTML.List<net.solarnetwork.service.PingTest>getTests()Get the configured tests.voidSet the tests.
-
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
Get the configured tests.- Returns:
- the tests
-
setTests
Set the tests.- Parameters:
tests- the tests
-