aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main')
-rw-r--r--juick-server/src/main/java/com/juick/server/Utils.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/juick-server/src/main/java/com/juick/server/Utils.java b/juick-server/src/main/java/com/juick/server/Utils.java
index 853b79fc..4b864fec 100644
--- a/juick-server/src/main/java/com/juick/server/Utils.java
+++ b/juick-server/src/main/java/com/juick/server/Utils.java
@@ -16,9 +16,6 @@
*/
package com.juick.server;
-import javax.servlet.http.HttpServletRequest;
-import java.util.Optional;
-
/**
*
* @author Ugnich Anton
@@ -30,16 +27,4 @@ public class Utils {
return str.replaceAll("@", "\\\\@")
.replaceAll("\\'", "\\\\'");
}
-
- /**
- * Returns the viewName to return for coming back to the sender url
- *
- * @param request Instance of {@link HttpServletRequest} or use an injected instance
- * @return Optional with the view name. Recomended to use an alternativa url with
- * {@link Optional#orElse(java.lang.Object)}
- */
- public static Optional<String> getPreviousPageByRequest(HttpServletRequest request)
- {
- return Optional.ofNullable(request.getHeader("Referer")).map(requestUrl -> "redirect:" + requestUrl);
- }
}