Class StringController

java.lang.Object
com.iu.javadatastructureslab.controller.StringController

@Controller public class StringController extends Object
Handles string manipulation demo requests.
  • Constructor Details

    • StringController

      public StringController()
  • Method Details

    • string

      @GetMapping("/strings") public String string(org.springframework.ui.Model model)
      Renders the string manipulation view.
      Parameters:
      model - model used to expose view attributes
      Returns:
      the strings view name
    • generateReservationMessage

      @PostMapping("/strings/generate") public String generateReservationMessage(@RequestParam String name, @RequestParam int tableNumber, @RequestParam String date, @RequestParam String time, org.springframework.ui.Model model)
      Generates a reservation message from form input.
      Parameters:
      name - customer name
      tableNumber - table number
      date - reservation date
      time - reservation time
      model - model used to expose view attributes
      Returns:
      the strings view name