<p>Redirect.</p>
@param pRqVs request scoped vars
@param pRqDt Request Data
@throws Exception - an exception
337692
public final void redir(final Map<String, Object> pRqVs,
    final IRequestData pRqDt) throws Exception {
    String procNm = pRqDt.getParameter("nmPrcRed");
    IProcessor proc = this.procFac.lazyGet(pRqVs, procNm);
    proc.process(pRqVs, pRqDt);
  }
1042882
public static String doPut(String host, String path,
                               Map<String, String> headers,
                               Map<String, String> queries) throws Exception {
        return doPut(host, path, headers, queries, "");
    }
299282
public <T extends AbstractPutObjectRequest> T withRedirectLocation(
            String redirectLocation) {
        this.redirectLocation = redirectLocation;
        @SuppressWarnings("unchecked") T t = (T)this;
        return t;
    }
617670
public void redirect(String url) throws IOException {
        endChangesIfNecessary();
        ResponseWriter writer = getWrapped();
        writer.startElement("redirect", null);
        writer.writeAttribute("url", url, null);
        writer.endElement("redirect");
    }
281519
public static void executeCommand(String[] args) throws Exception {
        String subCmd = (args.length > 0) ? args[0] : "";
        args = AdminToolUtils.copyArrayCutFirst(args);
        if(subCmd.equals("query-keys")) {
            SubCommandDebugQueryKeys.executeCommand(args);
        } else if(subCmd.equals("route")) {
            SubCommandDebugRoute.executeCommand(args);
        } else {
            printHelp(System.out);
        }
    }
731536
public final void page(final Map<String, Object> pRqVs,
    final IRequestData pRqDt, final OnlineBuyer pBuyr) throws Exception {
    TradingSettings ts = (TradingSettings) pRqVs.get("tradSet");
    //orders:
    int page;
    String pgSt = pRqDt.getParameter("pg");
    if (pgSt != null) {
      page = Integer.parseInt(pgSt);
    } else {
      page = 1;
    }
    String wheBr = "BUYER=" + pBuyr.getItsId();
    Integer rowCount = this.srvOrm.evalRowCountWhere(pRqVs,
      CustOrder.class, wheBr);
    Integer itemsPerPage = ts.getItemsPerPage();
    int totalPages = this.srvPage.evalPageCount(rowCount, itemsPerPage);
    if (page > totalPages) {
      page = totalPages;
    }
    int firstResult = (page - 1) * itemsPerPage; //0-20,20-40
    Integer paginationTail = Integer.valueOf(mngUvd
      .getAppSettings().get("paginationTail"));
    List<Page> pages = this.srvPage.evalPages(page, totalPages,
      paginationTail);
    pRqDt.setAttribute("pgs", pages);
    String tbn = CustOrder.class.getSimpleName();
    Set<String> ndFlNm = new HashSet<String>();
    ndFlNm.add("itsId");
    ndFlNm.add("itsName");
    pRqVs.put("PickUpPlaceneededFields", ndFlNm);
    pRqVs.put(tbn + "buyerdeepLevel", 1);
    List<CustOrder> orders = getSrvOrm().retrievePageWithConditions(pRqVs,
      CustOrder.class, "where " + wheBr, firstResult, itemsPerPage);
    pRqVs.remove(tbn + "buyerdeepLevel");
    pRqDt.setAttribute("ords", orders);
    //S.E. orders:
    pgSt = pRqDt.getParameter("spg");
    if (pgSt != null) {
      page = Integer.parseInt(pgSt);
    } else {
      page = 1;
    }
    rowCount = this.srvOrm.evalRowCountWhere(pRqVs, CuOrSe.class, wheBr);
    itemsPerPage = ts.getItemsPerPage();
    totalPages = this.srvPage.evalPageCount(rowCount, itemsPerPage);
    if (page > totalPages) {
      page = totalPages;
    }
    firstResult = (page - 1) * itemsPerPage; //0-20,20-40
    pages = this.srvPage.evalPages(1, totalPages, paginationTail);
    pRqDt.setAttribute("spgs", pages);
    tbn = CuOrSe.class.getSimpleName();
    Set<String> ndFlDc = new HashSet<String>();
    ndFlDc.add("seller");
    pRqVs.put("DebtorCreditorneededFields", ndFlNm);
    pRqVs.put("SeSellerneededFields", ndFlDc);
    pRqVs.put("CuOrSeseldeepLevel", 3);
    pRqVs.put(tbn + "buyerdeepLevel", 1);
    List<CuOrSe> sorders = getSrvOrm().retrievePageWithConditions(pRqVs,
      CuOrSe.class, "where " + wheBr, firstResult, itemsPerPage);
    pRqVs.remove(tbn + "buyerdeepLevel");
    pRqVs.remove("DebtorCreditorneededFields");
    pRqVs.remove("SeSellerneededFields");
    pRqVs.remove("CuOrSeseldeepLevel");
    pRqVs.remove("PickUpPlaceneededFields");
    pRqDt.setAttribute("sords", sorders);
  }
10941
public static void redirect(String url, boolean copyParameters, ServletRequest req, ServletResponse res)
	{
		if(url == null)
		{
			throw new IllegalArgumentException("URL cannot be null");
		}
		String redirectUrl = url;
		char separator = '?';
		if (redirectUrl.indexOf('?') != -1)
		{
			separator = '&';
		}
		if(copyParameters)
		{
			Enumeration e = req.getParameterNames();
			while (e.hasMoreElements())
			{
				String name = (String) e.nextElement();
				String value = req.getParameter(name);
				redirectUrl += separator + name + '=' + value;
				separator = '&';
			}
			e = req.getAttributeNames();
	/*		while (e.hasMoreElements())
			{
				String name = (String) e.nextElement();
				String value = req.getParameter(name);
				redirectUrl += separator + name + '=' + value;
				separator = '&';
			}  */
		}
		System.out.println(new LogEntry("about to redirect to " + redirectUrl));
		try
		{
			((HttpServletResponse)res).sendRedirect(redirectUrl);
		}
		catch(IOException ioe)
		{
			throw new ResourceException("redirect to '" + redirectUrl + "' failed with message: " +
			ioe.getMessage(), ioe);
		}
	}
994975
public void redirectCall(String connId, String destination) throws WorkspaceApiException {
        this.redirectCall(connId, destination, null, null);
    }
619904
@Override
  public final void process(final Map<String, Object> pRqVs,
    final IRequestData pRqDt) throws Exception {
    TradingSettings ts = (TradingSettings) pRqVs.get("tradSet");
    String itemTypeStr = pRqDt.getParameter("itemType");
    Long itemId = Long.valueOf(pRqDt.getParameter("itemId"));
    Cart cart = this.srvCart.getShoppingCart(pRqVs, pRqDt, false, false);
    OnlineBuyer buyr;
    if (cart != null) {
      buyr = cart.getBuyer();
      if (cart.getTot().compareTo(BigDecimal.ZERO) == 0) {
        pRqDt.setAttribute("cart", null);
      } else {
        AccSettings as = (AccSettings) pRqVs.get("accSet");
        Currency curr = (Currency) pRqVs.get("wscurr");
        if (!cart.getCurr().getItsId().equals(curr.getItsId())) {
          cart.setCurr(curr);
          List<CurrRate> currRates = (List<CurrRate>) pRqVs.get("currRates");
          for (CurrRate cr: currRates) {
            if (cr.getCurr().getItsId().equals(cart.getCurr().getItsId())) {
              cart.setExcRt(cr.getRate());
              break;
            }
          }
          this.srvCart.handleCurrencyChanged(pRqVs, cart, as, ts);
        }
        if (pRqDt.getAttribute("txRules") == null) {
          TaxDestination txRules = this.srvCart
            .revealTaxRules(pRqVs, cart, as);
          pRqDt.setAttribute("txRules", txRules);
        }
        for (CartLn ci : cart.getItems()) {
          if (!ci.getDisab() && ci.getItId().equals(itemId)
            && ci.getItTyp().toString().equals(itemTypeStr)) {
            pRqDt.setAttribute("cartItem", ci);
            break;
          }
        }
      }
    } else {
      buyr = this.buySr.getBuyr(pRqVs, pRqDt);
      if (buyr == null) {
        buyr = this.buySr.createBuyr(pRqVs, pRqDt);
      }
    }
    if (EShopItemType.GOODS.toString().equals(itemTypeStr)) {
      processGoods(pRqVs, pRqDt, ts, buyr, itemId);
    } else if (EShopItemType.SERVICE.toString().equals(itemTypeStr)) {
      processService(pRqVs, pRqDt, ts, buyr, itemId);
    } else if (EShopItemType.SEGOODS.toString().equals(itemTypeStr)) {
      processSeGoods(pRqVs, pRqDt, ts, buyr, itemId);
    } else if (EShopItemType.SEGOODS.toString().equals(itemTypeStr)) {
      processSeGoods(pRqVs, pRqDt, ts, buyr, itemId);
    } else if (EShopItemType.SESERVICE.toString().equals(itemTypeStr)) {
      procSeSrv(pRqVs, pRqDt, ts, buyr, itemId);
    } else {
      throw new Exception(
        "Detail page not yet implemented for item type: " + itemTypeStr);
    }
  }
1140392
@RequestMapping(value = "/qrpay")
    public void qrPay(
            @RequestParam("orderNumber") String orderNumber,
            HttpServletResponse response){
        try {
            String qrUrl = wepaySupport.qrPay(orderNumber);
            response.sendRedirect(qrUrl);
        } catch (IOException e) {
            log.error("failed to qr pay(orderNumber={}), cause: {}",
                    orderNumber, e.getMessage());
        }
    }
1082159
private void sendRedirectWithStatusCode(String location, int statusCode) throws IOException
    //PQ97429	
    {
        HttpServletResponse response = (HttpServletResponse) getResponse();
        if (!response.isCommitted())
        {
            // begin 133968: part 1
            if (location == null)
            {
                throw new IllegalArgumentException("Location cannot be null in javax.servlet.http.HttpServletResponse.sendRedirect(location)");
            }
            // end 133968: part 1

            // d128646 - we might not have a writer to flush at this point...make sure we do
            // PQ77141 overrides the above defect
//		try
//		{
//			response.getWriter();
//		}
//		catch (Throwable th)
//		{
//		}

            response.resetBuffer();

            location = convertRelativeURIToURL(location);

            // 115010 - begin - make header name begin with upper case
            response.setHeader("Location", location);
            // 115010 - end
            // PQ97429
            // response.setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY);
            response.setStatus(statusCode);
            // PQ97429	    

            //response.flushBuffer();  PK79143

        }
        else
        {
            throw new IllegalStateException();
        }
    }
346116
public static void redirectStreams() {
        try {
            AccessController.doPrivileged(new PrivilegedAction<Object>() {
                public Object run() {
                    HpelSystemStream newErr = new HpelSystemStream("SystemErr");
                    System.setErr(newErr);
                    HpelSystemStream newOut = new HpelSystemStream("SystemOut");
                    System.setOut(newOut);
                    return null;
                }
            });
        } catch (Throwable t) {
            throw new RuntimeException("Unable to replace System streams", t);
        }

        reset() ;
    }
786743
public String getJavaScriptForRedirect(String reqUrlCookieName, String redirectUrl) throws Exception {
        return getJavaScriptForRedirect(reqUrlCookieName, redirectUrl, null);
    }
986913
function (urlpath, dirs) {
    dirs.forEach(function (val, idx) {
        redirectTo(urlpath, false);
        addDeepDir(urlpath, val);
    });
}
246530
public void setRedirects(int i, String v) { 
    if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_redirects == null)
      jcasType.jcas.throwFeatMissing("redirects", "de.julielab.jules.types.wikipedia.Descriptor");
    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Descriptor_Type)jcasType).casFeatCode_redirects), i);
    jcasType.ll_cas.ll_setStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Descriptor_Type)jcasType).casFeatCode_redirects), i, v);}
166059
public void execute(@Param("channelId") Long channelId, @Param("pageIndex") int pageIndex,
                        @Param("searchKey") String searchKey, Context context, Navigator nav) throws Exception {
        Channel channel = channelService.findById(channelId);
        if (channel.getStatus().isStart()) {
            nav.redirectTo(WebConstant.ERROR_FORBIDDEN_Link);
            return;
        }
        context.put("channel", channel);
        context.put("pageIndex", pageIndex);
        context.put("searchKey", searchKey);
    }
1339768
protected <T extends AppController> HttpBuilder redirect(Class<T> controllerClass, Object id){
        return redirect(controllerClass, map("id", id));
    }