Class ServiceListController

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

@Controller @RequestMapping("/{baseSiteId}") public class ServiceListController extends Object
Controller responsible to process the ServiceList message
  • 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

      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 IATAServiceListRS createExceptionResponse(Exception exception, String errorMessage)
      Creates an exception IATAServiceListRS response
      Parameters:
      exception - the exception
      errorMessage - the error message
      Returns:
      an exception IATAServiceListRS response
    • createErrorResponse

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