Package com.skava.web

Class PingController

java.lang.Object
com.skava.web.PingController

@RestController @RequestMapping("/ping") public class PingController extends Object
This controller class contains service end-point that is used to check if microservice is responsing to requests.
Author:
Infosys Equinox
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    ping(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse)
    Standard ping method used to check if microservice is responsing to requests.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - A HttpServletRequest object that contains the request the client has made of the servlet.
      httpServletResponse - A HttpServletResponse object that contains the response the servlet sends to the client.
      Returns:
      The time stamp with pinging message.