Class OfferPriceController

java.lang.Object
de.hybris.platform.ndc182shoppingwebservices.controllers.OfferPriceController

@Controller @RequestMapping("/{baseSiteId}") public class OfferPriceController extends Object
The ndc 182 OfferPrice Controller.
  • 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

      protected void validateAgainstSchema(Object message, List<ErrorType> errors, boolean discloseError)
      Validates message against schema
      Parameters:
      message - the message
      errors - the list of errors
      discloseError - when true, a real error message will be disclosed
    • createExceptionResponse

      protected IATAOfferPriceRS createExceptionResponse(Exception exception, String errorMessage)
      Creates an exception IATAOfferPriceRS response
      Parameters:
      exception - the exception
      errorMessage - the error message
      Returns:
      an exception IATAOfferPriceRS response
    • createErrorResponse

      protected IATAOfferPriceRS createErrorResponse(List<ErrorType> errors)
      Creates an error IATAOfferPriceRS response
      Parameters:
      errors - the list of errors
      Returns:
      an error IATAOfferPriceRS response