public class BHiveRedirectStrategy extends Object implements org.springframework.security.web.RedirectStrategy
DefaultRedirectStrategy| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
BHiveRedirectStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isAjaxRequest(javax.servlet.http.HttpServletRequest request)
주어진 요청이 Ajax요청인지 여부
|
void |
sendRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String url)
Redirects the response to the supplied URL.
|
void |
setContextRelative(boolean useRelativeContext)
If true, causes any redirection URLs to be calculated minus the protocol
and context path (defaults to false).
|
public void sendRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String url)
throws IOException
If contextRelative is set, the redirect value will be the value after the request context path. Note that this will result in the loss of protocol information (HTTP or HTTPS), so will cause problems if a redirect is being performed to change to HTTPS, for example.
sendRedirect in interface org.springframework.security.web.RedirectStrategyIOExceptionprotected boolean isAjaxRequest(javax.servlet.http.HttpServletRequest request)
request - 판단할 요청 객체public void setContextRelative(boolean useRelativeContext)
useRelativeContext - 관련 context 정보 사용 true|falseCopyright © 2018. All rights reserved.