new-integration-tests/src/test/resources/apps/clusterview/src/java/oracle/weblogic/kubernetes/applications/clusterview/ConfigServlet.java
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    try (PrintWriter out = response.getWriter()) {

      // check attributes of server configurations
      String attributeTest = request.getParameter("attributeTest");
      if (attributeTest != null) {
        printServerAttributes(request, out);
      }

      // test JDBC connection pool
      String dsTest = request.getParameter("dsTest");
      if (dsTest != null) {
        testJdbcConnection(request, out);
      }

      // print JDBC datasource parameters
      String resTest = request.getParameter("resTest");
      if (resTest != null) {
        printResourceAttributes(request, out);
      }

      String restart = request.getParameter("restartDS");
      if (restart != null) {
        restartJDBCResource(request, out);
      }

    }
  }
/**
   * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
   *
   * @param request servlet request
   * @param response servlet response
   * @throws ServletException if a servlet-specific error occurs
   * @throws IOException if an I/O error occurs
   */
Processes requests for both HTTP GET and POST methods.
@param request servlet request
@param response servlet response
@throws ServletException if a servlet-specific error occurs
@throws IOException if an I/O error occurs
Processes requests for both HTTP GET and POST methods . @param request servlet request @param response servlet response @throws ServletException if a servlet - specific error occurs @throws IOException if an I / O error occurs
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    try (PrintWriter out = response.getWriter()) {
      String attributeTest = request.getParameter("attributeTest");
      if (attributeTest != null) {
        printServerAttributes(request, out);
      }
      String dsTest = request.getParameter("dsTest");
      if (dsTest != null) {
        testJdbcConnection(request, out);
      }
      String resTest = request.getParameter("resTest");
      if (resTest != null) {
        printResourceAttributes(request, out);
      }
      String restart = request.getParameter("restartDS");
      if (restart != null) {
        restartJDBCResource(request, out);
      }
    }
  }
protected void processRequest ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { response . setContentType ( "text/html;charset=UTF-8" ) ; try ( PrintWriter out = response . getWriter ( ) ) { String attributeTest = request . getParameter ( "attributeTest" ) ; if ( attributeTest != null ) { printServerAttributes ( request , out ) ; } String dsTest = request . getParameter ( "dsTest" ) ; if ( dsTest != null ) { testJdbcConnection ( request , out ) ; } String resTest = request . getParameter ( "resTest" ) ; if ( resTest != null ) { printResourceAttributes ( request , out ) ; } String restart = request . getParameter ( "restartDS" ) ; if ( restart != null ) { restartJDBCResource ( request , out ) ; } } }
Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
Processes requests for both HTTP <code > GET< / code > and <code > POST< / code > methods .
// check attributes of server configurations // test JDBC connection pool // print JDBC datasource parameters