Class OfferPriceController
java.lang.Object
de.hybris.platform.ndc182shoppingwebservices.controllers.OfferPriceController
The ndc 182 OfferPrice Controller.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IATAOfferPriceRScreateErrorResponse(List<ErrorType> errors) Creates an error IATAOfferPriceRS responseprotected IATAOfferPriceRScreateExceptionResponse(Exception exception, String errorMessage) Creates an exception IATAOfferPriceRS responsereceiveOfferPriceRQ(IATAOfferPriceRQ offerPriceRQ) protected voidvalidateAgainstSchema(Object message, List<ErrorType> errors, boolean discloseError) Validates message against schema
-
Constructor Details
-
OfferPriceController
public OfferPriceController()
-
-
Method Details
-
receiveOfferPriceRQ
@Secured("ROLE_TRAVELAGENCYGROUP") @RequestMapping(value="/offerprice", method=POST, consumes="application/xml", produces="application/xml") @ResponseBody public IATAOfferPriceRS receiveOfferPriceRQ(@RequestBody IATAOfferPriceRQ offerPriceRQ) -
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 IATAOfferPriceRS response- Parameters:
exception- the exceptionerrorMessage- the error message- Returns:
- an exception IATAOfferPriceRS response
-
createErrorResponse
Creates an error IATAOfferPriceRS response- Parameters:
errors- the list of errors- Returns:
- an error IATAOfferPriceRS response
-