|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hippoecm.hst.util.HstResponseUtils
public class HstResponseUtils
HST Response Utils
Method Summary | |
---|---|
static void |
sendRedirect(HstRequest request,
HstResponse response,
String path)
Facility method for sending a redirect to a sitemap path. |
static void |
sendRedirect(HstRequest request,
HstResponse response,
String path,
Map<String,String[]> queryParams)
Facility method for sending a 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 redirect to a sitemap path. |
static void |
sendRedirectOrForward(HstRequest request,
HstResponse response,
String path)
Facility method for sending a redirect if available or forwarding otherwise to a SiteMapItemId. |
static void |
sendRedirectOrForward(HstRequest request,
HstResponse response,
String path,
Map<String,String[]> queryParams)
Facility method for sending a redirect if available or forwarding otherwise to a SiteMapItemId. |
static void |
sendRedirectOrForward(HstRequest request,
HstResponse response,
String path,
Map<String,String[]> queryParams,
String characterEncoding)
Facility method for sending a redirect if available or forwarding otherwise to a SiteMapItemId. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 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 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 sendRedirectOrForward(HstRequest request, HstResponse response, String path)
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 topublic static void sendRedirectOrForward(HstRequest request, HstResponse response, String path, Map<String,String[]> queryParams)
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 urlpublic static void sendRedirectOrForward(HstRequest request, HstResponse response, String path, Map<String,String[]> queryParams, String characterEncoding)
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 parameters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |