diff options
author | Ugnich Anton | 2012-12-24 13:18:30 +0700 |
---|---|---|
committer | Ugnich Anton | 2012-12-24 13:18:30 +0700 |
commit | 14ad66efa9f692023ae6982e3fa1d67c3c0aad11 (patch) | |
tree | b096f6af499628e8f0a77a0ef4f60695efcc4fc1 /src/java/com/juick/http/www/Utils.java | |
parent | 52f88dbb3c2e81e1b658b95ff91236db1a1fe03a (diff) |
Help
Diffstat (limited to 'src/java/com/juick/http/www/Utils.java')
-rw-r--r-- | src/java/com/juick/http/www/Utils.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/com/juick/http/www/Utils.java b/src/java/com/juick/http/www/Utils.java index 80577d04..15782bf0 100644 --- a/src/java/com/juick/http/www/Utils.java +++ b/src/java/com/juick/http/www/Utils.java @@ -66,6 +66,11 @@ public class Utils { return 0; } + public static void sendTemporaryRedirect(HttpServletResponse response, String location) { + response.setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY); + response.setHeader("Location", location); + } + public static void sendPermanentRedirect(HttpServletResponse response, String location) { response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY); response.setHeader("Location", location); |