@Override
  public final void process(final Map<String, Object> pRqVs,
    final IRequestData pRqDt) throws Exception {
    Cart cart = this.srvCart.getShoppingCart(pRqVs, pRqDt, false,
      false);
    if (cart != null) {
      String dlvStr = pRqDt.getParameter("deliv");
      String payMethStr = pRqDt.getParameter("payMeth");
      EDelivering dlv = EDelivering.class.
        getEnumConstants()[Integer.parseInt(dlvStr)];
      EPaymentMethod payMeth = EPaymentMethod.class.
        getEnumConstants()[Integer.parseInt(payMethStr)];
      if (dlv != cart.getDeliv() || payMeth != cart.getPayMeth()) {
        EDelivering dlvOld = cart.getDeliv();
        cart.setDeliv(dlv);
        cart.setPayMeth(payMeth);
        this.srvOrm.updateEntity(pRqVs, cart);
        if (dlv != dlvOld) {
          AccSettings as = (AccSettings) pRqVs.get("accSet");
          TaxDestination txRules = this.srvCart.revealTaxRules(pRqVs,
            cart, as);
          if (txRules != null) {
            pRqDt.setAttribute("txRules", txRules);
          }
          this.srvCart.hndCartChan(pRqVs, cart, txRules);
        }
      }
    } //else spam
    //TODO change to servlet redirect???
    String processorName = pRqDt.getParameter("nmPrcRed");
    IProcessor proc = this.processorsFactory.lazyGet(pRqVs, processorName);
    proc.process(pRqVs, pRqDt);
  }
@ Override public final void process ( final Map < String , Object > pRqVs , final IRequestData pRqDt ) throws Exception { Cart cart = this . srvCart . getShoppingCart ( pRqVs , pRqDt , false , false ) ; if ( cart != null ) { String dlvStr = pRqDt . getParameter ( "deliv" ) ; String payMethStr = pRqDt . getParameter ( "payMeth" ) ; EDelivering dlv = EDelivering . class . getEnumConstants ( ) [ Integer . parseInt ( dlvStr ) ] ; EPaymentMethod payMeth = EPaymentMethod . class . getEnumConstants ( ) [ Integer . parseInt ( payMethStr ) ] ; if ( dlv != cart . getDeliv ( ) || payMeth != cart . getPayMeth ( ) ) { EDelivering dlvOld = cart . getDeliv ( ) ; cart . setDeliv ( dlv ) ; cart . setPayMeth ( payMeth ) ; this . srvOrm . updateEntity ( pRqVs , cart ) ; if ( dlv != dlvOld ) { AccSettings as = ( AccSettings ) pRqVs . get ( "accSet" ) ; TaxDestination txRules = this . srvCart . revealTaxRules ( pRqVs , cart , as ) ; if ( txRules != null ) { pRqDt . setAttribute ( "txRules" , txRules ) ; } this . srvCart . hndCartChan ( pRqVs , cart , txRules ) ; } } } String processorName = pRqDt . getParameter ( "nmPrcRed" ) ; IProcessor proc = this . processorsFactory . lazyGet ( pRqVs , processorName ) ; proc . process ( pRqVs , pRqDt ) ; }
<p>Process request.</p>
@param pRqVs request scoped vars
@param pRqDt Request Data
@throws Exception - an exception