resp.sendRedirect(DEFAULT_MAIL_URL);
resp.sendRedirect(redirectUrl);
    private void setCookieAndRedirect(HttpServletRequest req, HttpServletResponse resp, String authToken) throws IOException {        Cookie c = new Cookie(COOKIE_ZM_AUTH_TOKEN, authToken);        c.setPath("/");        resp.addCookie(c);        String redirectURL = getOptionalParam(req, PARAM_REDIRECT_URL, null);        if (redirectURL != null) {            resp.sendRedirect(redirectURL);        } else {            StringBuilder sb = new StringBuilder();            addNonPreAuthParams(req, sb, true);            if (sb.length() > 0) {                resp.sendRedirect(DEFAULT_MAIL_URL + "?" + sb.toString());            } else {                resp.sendRedirect(DEFAULT_MAIL_URL);            }        }    }