protected void process ( HttpServletRequest request , HttpServletResponse response ) throws IOException { boolean doStatusQuery = request . getParameter ( PING_NODES ) != null ; String acceptHeader = request . getHeader ( "Accept" ) ; if ( acceptHeader != null && acceptHeader . equalsIgnoreCase ( "application/json" ) ) { ServletHelper . respondAsJsonWithHttpStatus ( response , getProxyInfo ( doStatusQuery ) , HttpServletResponse . SC_OK ) ; } else { ServletHelper . respondAsHtmlUsingJsonAndTemplateWithHttpStatus ( response , getProxyInfo ( doStatusQuery ) , RESOURCE_PAGE_FILE , HttpServletResponse . SC_OK ) ; } }
This method gets all the nodes which are connected to the grid machine from the Registry and displays them in html page .