Package org.silverpeas.core.web.http
Class SafeContentRedirect
- java.lang.Object
-
- org.silverpeas.core.web.http.SafeContentRedirect
-
- Direct Known Subclasses:
ServletSafeContentRedirect
public abstract class SafeContentRedirect extends Object
Centralizing the code which permits to redirect safely to any content URL.- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServletSafeContentRedirect
fromServlet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Initializing the file response context.String
getDestination(String url)
Sets the URL of redirection and perform on it some computing.
-
-
-
Method Detail
-
fromServlet
public static ServletSafeContentRedirect fromServlet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Initializing the file response context.- Parameters:
request
- the current request.response
- the current response.- Returns:
- the initialized file response.
-
-