Class ServiceListController
java.lang.Object
de.hybris.platform.ndc182shoppingwebservices.controllers.ServiceListController
Controller responsible to process the ServiceList message
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IATAServiceListRScreateErrorResponse(List<ErrorType> errors) Creates an error IATAServiceListRS responseprotected IATAServiceListRScreateExceptionResponse(Exception exception, String errorMessage) Creates an exception IATAServiceListRS responsegetServiceList(IATAServiceListRQ serviceListRQ) Given an order or a set of offers from airshopping it returns the list of available services available on the associated flightsprotected voidvalidateAgainstSchema(Object message, List<ErrorType> errors, boolean discloseError) Validates message against schema
-
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- the service request- Returns:
- the ServiceList response object
-
validateAgainstSchema
Validates message against schema- Parameters:
message- the messageerrors- the list of errorsdiscloseError- whentrue, a real error message will be disclosed
-
createExceptionResponse
Creates an exception IATAServiceListRS response- Parameters:
exception- the exceptionerrorMessage- the error message- Returns:
- an exception IATAServiceListRS response
-
createErrorResponse
Creates an error IATAServiceListRS response- Parameters:
errors- the list of errors- Returns:
- an error IATAServiceListRS response
-