public class HstResponseUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
sendPermanentRedirect(HstRequest request,
HstResponse response,
String path)
Facility method for sending a permanent 301 redirect to a sitemap path.
|
static void |
sendPermanentRedirect(HstRequest request,
HstResponse response,
String path,
Map<String,String[]> queryParams)
Facility method for sending a permanent 301 redirect to a sitemap path.
|
static void |
sendPermanentRedirect(HstRequest request,
HstResponse response,
String path,
Map<String,String[]> queryParams,
String characterEncoding)
Facility method for sending a permanent 301 redirect to a sitemap path.
|
static void |
sendRedirect(HstRequest request,
HstResponse response,
String path)
Facility method for sending a temporary 302 redirect to a sitemap path.
|
static void |
sendRedirect(HstRequest request,
HstResponse response,
String path,
Map<String,String[]> queryParams)
Facility method for sending a temporary 302 redirect to a sitemap path.
|
static void |
sendRedirect(HstRequest request,
HstResponse response,
String path,
Map<String,String[]> queryParams,
String characterEncoding)
Facility method for sending a temporary 302 redirect to a sitemap path.
|
static void |
sendRedirectOrForward(HstRequest request,
HstResponse response,
String path)
Deprecated.
use
sendRedirect(HstRequest, HstResponse, String) if not within a portletContext; portlet support will be removed after 2.26.xx |
static void |
sendRedirectOrForward(HstRequest request,
HstResponse response,
String path,
Map<String,String[]> queryParams)
Deprecated.
use
sendRedirect(HstRequest, HstResponse, String,Map) if not within a portletContext; portlet support will be removed after 2.26.xx |
static void |
sendRedirectOrForward(HstRequest request,
HstResponse response,
String path,
Map<String,String[]> queryParams,
String characterEncoding)
Deprecated.
use
sendRedirect(HstRequest,HstResponse,String,Map,String) if not within a portletContext; portlet support will be removed after 2.26.xx |
public static void sendRedirect(HstRequest request, HstResponse response, String path)
request
- the HstRequestresponse
- the HstResponsepath
- the sitemap path you want to redirect topublic static void sendPermanentRedirect(HstRequest request, HstResponse response, String path)
request
- the HstRequestresponse
- the HstResponsepath
- the sitemap path you want to redirect topublic static void sendRedirect(HstRequest request, HstResponse response, String path, Map<String,String[]> queryParams)
request
- the HstRequestresponse
- the HstResponsepath
- the sitemap path you want to redirect toqueryParams
- query parameters to append to the redirection urlpublic static void sendPermanentRedirect(HstRequest request, HstResponse response, String path, Map<String,String[]> queryParams)
request
- the HstRequestresponse
- the HstResponsepath
- the sitemap path you want to redirect toqueryParams
- query parameters to append to the redirection urlpublic static void sendRedirect(HstRequest request, HstResponse response, String path, Map<String,String[]> queryParams, String characterEncoding)
request
- the HstRequestresponse
- the HstResponsepath
- the sitemap path you want to redirect toqueryParams
- query parameters to append to the redirection urlcharacterEncoding
- character encoding for query parameterspublic static void sendPermanentRedirect(HstRequest request, HstResponse response, String path, Map<String,String[]> queryParams, String characterEncoding)
request
- the HstRequestresponse
- the HstResponsepath
- the sitemap path you want to redirect toqueryParams
- query parameters to append to the redirection urlcharacterEncoding
- character encoding for query parameters@Deprecated public static void sendRedirectOrForward(HstRequest request, HstResponse response, String path)
sendRedirect(HstRequest, HstResponse, String)
if not within a portletContext; portlet support will be removed after 2.26.xx
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.
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.
request
- the HstRequestresponse
- the HstResponsepath
- the sitemap path you want to redirect to@Deprecated public static void sendRedirectOrForward(HstRequest request, HstResponse response, String path, Map<String,String[]> queryParams)
sendRedirect(HstRequest, HstResponse, String,Map)
if not within a portletContext; portlet support will be removed after 2.26.xx
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.
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.
request
- the HstRequestresponse
- the HstResponsepath
- the sitemap path you want to redirect toqueryParams
- query parameters to append to the redirection url@Deprecated public static void sendRedirectOrForward(HstRequest request, HstResponse response, String path, Map<String,String[]> queryParams, String characterEncoding)
sendRedirect(HstRequest,HstResponse,String,Map,String)
if not within a portletContext; portlet support will be removed after 2.26.xx
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.
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.
request
- the HstRequestresponse
- the HstResponsepath
- the sitemap path you want to redirect toqueryParams
- query parameters to append to the redirection urlcharacterEncoding
- character encoding for query parametersCopyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.