/** * Facility method for sending a redirect to a sitemap path. * * @param request the HstRequest * @param response the HstResponse * @param path the sitemap path you want to redirect to */ public static void sendRedirect(HstRequest request, HstResponse response, String path) { sendRedirect(request, response, path, null, null); }
/** * Facility method for sending a redirect if available or forwarding otherwise to a SiteMapItemId. * <P> * <EM> * Note: * When the component is deployed on a normal servlet application, then this method tries to send a redirect * if this method is invoked during doAction() or doBeforeRender() methods. * <BR/> * Meanwhile when the component is deployed on a portlet application for a portal, then this method tries to send a redirect * if this method is invoked during doAction(), but it tries to forward during doBeforeRender() methods * because it is allowed only in the action phase to send a redirect in a portlet. * </EM> * </P> * * @param request the HstRequest * @param response the HstResponse * @param path the sitemap path you want to redirect to */ public static void sendRedirectOrForward(HstRequest request, HstResponse response, String path) { sendRedirectOrForward(request, response, path, null, null); }
/** * Facility method for sending a redirect if available or forwarding otherwise to a SiteMapItemId. * <P> * <EM> * Note: * When the component is deployed on a normal servlet application, then this method tries to send a redirect * if this method is invoked during doAction() or doBeforeRender() methods. * <BR/> * Meanwhile when the component is deployed on a portlet application for a portal, then this method tries to send a redirect * if this method is invoked during doAction(), but it tries to forward during doBeforeRender() methods * because it is allowed only in the action phase to send a redirect in a portlet. * </EM> * </P> * * @param request the HstRequest * @param response the HstResponse * @param path the sitemap path you want to redirect to * @param queryParams query parameters to append to the redirection url */ public static void sendRedirectOrForward(HstRequest request, HstResponse response, String path, Map<String, String []> queryParams) { sendRedirectOrForward(request, response, path, queryParams, null); }
/** * <p> * Facility method for sending a redirect to a sitemap path including query params. You do not have to take into account the context path or {@link Mount} path * </p> * @see HstResponse#sendRedirect(String) * @param path the sitemap path you want to redirect to * @param request the HstRequest * @param queryParams query parameters to append to the redirection url * @param response the HstResponse */ public void sendRedirect(String path, HstRequest request, HstResponse response, Map<String, String []> queryParams) { HstResponseUtils.sendRedirect(request, response, path, queryParams); }
/** * Facility method for sending a redirect to a sitemap path. * * @param request the HstRequest * @param response the HstResponse * @param path the sitemap path you want to redirect to * @param queryParams query parameters to append to the redirection url */ public static void sendRedirect(HstRequest request, HstResponse response, String path, Map<String, String []> queryParams) { sendRedirect(request, response, path, queryParams, null); }
/** * <p> * Facility method for sending a redirect to a sitemap path including query params. You do not have to take into account the context path or SiteMount path * </p> * @see HstResponse#sendRedirect(String) * @param path the sitemap path you want to redirect to * @param request the HstRequest * @param queryParams query parameters to append to the redirection url * @param response the HstResponse */ public void sendRedirect(String path, HstRequest request, HstResponse response, Map<String, String []> queryParams) { HstResponseUtils.sendRedirect(request, response, path, queryParams); }
/** * <p> * Facility method for sending a redirect to a sitemap path. You do not have to take into account the context path or {@link Mount} path * </p> * * @see HstResponse#sendRedirect(String) * @param path the sitemap path you want to redirect to * @param request the HstRequest * @param response the HstResponse */ public void sendRedirect(String path, HstRequest request, HstResponse response) { HstResponseUtils.sendRedirect(request, response, path); }
/** * <p> * Facility method for sending a redirect to a sitemap path. You do not have to take into account the context path or SiteMount path * </p> * * @see HstResponse#sendRedirect(String) * @param path the sitemap path you want to redirect to * @param request the HstRequest * @param response the HstResponse */ public void sendRedirect(String path, HstRequest request, HstResponse response) { HstResponseUtils.sendRedirect(request, response, path); }
/** * <p> * Facility method for sending a redirect to a sitemap path including query params and characterEncoding. You do not have to take into account the context path or {@link Mount} path * </p> * * @see HstResponse#sendRedirect(String) * @param path the sitemap path you want to redirect to * @param request the HstRequest * @param queryParams query parameters to append to the redirection url * @param response the HstResponse * @param characterEncoding character encoding for query parameters */ public void sendRedirect(String path, HstRequest request, HstResponse response, Map<String, String []> queryParams, String characterEncoding) { HstResponseUtils.sendRedirect(request, response, path, queryParams, characterEncoding); }
/** * <p> * Facility method for sending a redirect to a sitemap path including query params and characterEncoding. You do not have to take into account the context path or SiteMount path * </p> * * @see HstResponse#sendRedirect(String) * @param path the sitemap path you want to redirect to * @param request the HstRequest * @param queryParams query parameters to append to the redirection url * @param response the HstResponse * @param characterEncoding character encoding for query parameters */ public void sendRedirect(String path, HstRequest request, HstResponse response, Map<String, String []> queryParams, String characterEncoding) { HstResponseUtils.sendRedirect(request, response, path, queryParams, characterEncoding); }
sendRedirect(request, response, path, queryParams, characterEncoding); } else { try {