Class AirShoppingController
java.lang.Object
de.hybris.platform.ndc182shoppingwebservices.controllers.AirShoppingController
Controller for AirShoppingRQ
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionairShopping(IATAAirShoppingRQ airShoppingRQ) protected IATAAirShoppingRScreateErrorResponse(List<ErrorType> errors) Creates an error IATAAirShoppingRS responseprotected IATAAirShoppingRScreateExceptionResponse(Exception exception, String errorMessage) Creates an exception IATAAirShoppingRS responseprotected voidvalidateAgainstSchema(Object message, List<ErrorType> errors, boolean discloseError) Validates message against schema
-
Constructor Details
-
AirShoppingController
public AirShoppingController()
-
-
Method Details
-
airShopping
@Secured("ROLE_TRAVELAGENCYGROUP") @RequestMapping(value="/airshopping", method=POST, consumes="application/xml", produces="application/xml") @ResponseBody public IATAAirShoppingRS airShopping(@RequestBody IATAAirShoppingRQ airShoppingRQ) -
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 IATAAirShoppingRS response- Parameters:
exception- the exceptionerrorMessage- the error message- Returns:
- an exception IATAAirShoppingRS response
-
createErrorResponse
Creates an error IATAAirShoppingRS response- Parameters:
errors- the list of errors- Returns:
- an error IATAAirShoppingRS response
-