Class SeatMapFinderController

java.lang.Object
de.hybris.platform.travelseatmapservices.controllers.SeatMapFinderController

@Controller @RequestMapping("/seatmap") public class SeatMapFinderController extends Object
SeatMap Finder Controller for handling requests for the Seat Map.
  • Field Details

  • Constructor Details

    • SeatMapFinderController

      public SeatMapFinderController()
  • Method Details

    • performSearch

      @ResponseBody @RequestMapping(value="/getseatmap/{vehiclecode}", method=GET, produces="application/json") public SeatMapJSONObject performSearch(@PathVariable("vehiclecode") String vehiclecode)
    • validateCode

      protected boolean validateCode(String vehicleCode)
      This method validates the vehicle code should be alphanumeric with ony special character as dash
      Parameters:
      vehicleCode - as the vehicle code
      Returns:
      true if the code is valid, false otherwise