Package org.talend.esb.client.app.model

Examples of org.talend.esb.client.app.model.SearchRequestParameters


        model.addAttribute("excptMessage", e);
        return "error";
      }

      setSessionAttribute(session, SearchRequestParameters.class,
          new SearchRequestParameters(req));

      return setStageAndRedirect(session, Stages.CAR_LIST);
    }

    return redirectToMainPage();
View Full Code Here


    if (carIndex != null && carIndex >= 0) {
      List<RESCarType> cars = searchModel.getCars();
      if (carIndex < cars.size()) {
        CustomerDetailsType customerDetails = searchModel.getCustomer();
        RESCarType selectedCar = cars.get(carIndex);
        SearchRequestParameters requestParams = getSessionAttribute(
            session, SearchRequestParameters.class);

        RESStatusType resStatus = null;

        ConfirmationType confirm = null;

        try {
          resStatus = reserveModel.reserveCar(customerDetails,
              selectedCar, requestParams.getPickupDate(),
              requestParams.getReturnDate());

          confirm = reserveModel.getConfirmation(resStatus,
              customerDetails, selectedCar,
              requestParams.getPickupDate(),
              requestParams.getReturnDate());
        } catch (Exception e) {
          model.addAttribute("excptMessage", e);
          return "error";
        }
View Full Code Here

  @ModelAttribute("inputData")
  public SearchRequestParameters createRequestParameters() {
    SimpleDateFormat sdf = new SimpleDateFormat(
        DateFormatValidator.DEFAULT_FORMAT);
    SearchRequestParameters params = new SearchRequestParameters();
    params.setCustomerName("aebert");
    params.setPickupDate(sdf.format(new Date()));
    params.setReturnDate(sdf.format(new Date(System.currentTimeMillis()
        + ADAY)));
    return params;
  }
View Full Code Here

TOP

Related Classes of org.talend.esb.client.app.model.SearchRequestParameters

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.