Class SeatMapFinderController
java.lang.Object
de.hybris.platform.travelseatmapservices.controllers.SeatMapFinderController
SeatMap Finder Controller for handling requests for the Seat Map.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionperformSearch(String vehiclecode) protected booleanvalidateCode(String vehicleCode) This method validates the vehicle code should be alphanumeric with ony special character as dash
-
Field Details
-
VEHICLE_CODE_REGEX
- See Also:
-
-
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
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
-