Package com.skava.web
Class PingController
java.lang.Object
com.skava.web.PingController
This controller class contains service end-point that is used to check if microservice is responsing to requests.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PingController
public PingController()Default Constructor
-
-
Method Details
-
ping
@GetMapping("") public String ping(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse) Standard ping method used to check if microservice is responsing to requests.- Parameters:
httpServletRequest
- AHttpServletRequest
object that contains the request the client has made of the servlet.httpServletResponse
- AHttpServletResponse
object that contains the response the servlet sends to the client.- Returns:
- The time stamp with pinging message.
-