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.
|
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 parametersCopyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.