Class ServiceListController
java.lang.Object
de.hybris.platform.ndc182webservices.controllers.ServiceListController
Controller responsible to process the ServiceList message
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ErrorTypecreateError(String errorMessage) Creates an error typeprotected IATAServiceListRScreateErrorResponse(List<ErrorType> errors) Creates an error IATAOrderViewRS responsegetServiceList(IATAServiceListRQ serviceListRQ) Given an order or a set of offers from airshopping it returns the list of available services available on the associated flights
-
Constructor Details
-
ServiceListController
public ServiceListController()
-
-
Method Details
-
getServiceList
@RequestMapping(value="/servicelist", method=POST, consumes="application/xml", produces="application/xml") @ResponseBody @Secured("ROLE_TRAVELAGENCYGROUP") public IATAServiceListRS getServiceList(@RequestBody IATAServiceListRQ serviceListRQ) Given an order or a set of offers from airshopping it returns the list of available services available on the associated flights- Parameters:
serviceListRQ-- Returns:
- the ServiceList response object
-
createErrorResponse
Creates an error IATAOrderViewRS response- Parameters:
errors-- Returns:
- an error IATAOrderViewRS response
-
createError
Creates an error type- Parameters:
errorMessage-- Returns:
- an
ErrorType
-