Package org.springframework.security.web
Interface RedirectStrategy
-
- All Known Implementing Classes:
DefaultRedirectStrategy
public interface RedirectStrategy
Encapsulates the redirection logic for all classes in the framework which perform redirects.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
sendRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String url)
Performs a redirect to the supplied URL
-
-
-
Method Detail
-
sendRedirect
void sendRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String url) throws java.io.IOException
Performs a redirect to the supplied URL- Parameters:
request
- the current requestresponse
- the response to redirecturl
- the target URL to redirect to, for example "/login"- Throws:
java.io.IOException
-
-