Package io.tesler.core.controller.http
Class AJAXRedirectStrategyImpl
- java.lang.Object
-
- org.springframework.security.web.DefaultRedirectStrategy
-
- io.tesler.core.controller.http.AJAXRedirectStrategyImpl
-
- All Implemented Interfaces:
AJAXRedirectStrategy
,org.springframework.security.web.RedirectStrategy
@Component public class AJAXRedirectStrategyImpl extends org.springframework.security.web.DefaultRedirectStrategy implements AJAXRedirectStrategy
-
-
Constructor Summary
Constructors Constructor Description AJAXRedirectStrategyImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
calculateRedirectUrl(javax.servlet.http.HttpServletRequest request, String url)
protected void
doSendRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String url)
String
getReferrer(javax.servlet.http.HttpServletRequest request)
String
getSystemUrl()
String
getUILocation(javax.servlet.http.HttpServletRequest request)
boolean
isAjaxRequest(javax.servlet.http.HttpServletRequest request)
void
sendRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String url)
-
-
-
Field Detail
-
UI_HASH
public static final String UI_HASH
- See Also:
- Constant Field Values
-
SLASH
public static final String SLASH
- See Also:
- Constant Field Values
-
-
Method Detail
-
sendRedirect
public void sendRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String url) throws IOException
- Specified by:
sendRedirect
in interfaceAJAXRedirectStrategy
- Specified by:
sendRedirect
in interfaceorg.springframework.security.web.RedirectStrategy
- Overrides:
sendRedirect
in classorg.springframework.security.web.DefaultRedirectStrategy
- Throws:
IOException
-
doSendRedirect
protected void doSendRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String url)
-
calculateRedirectUrl
public String calculateRedirectUrl(javax.servlet.http.HttpServletRequest request, String url)
- Specified by:
calculateRedirectUrl
in interfaceAJAXRedirectStrategy
-
isAjaxRequest
public boolean isAjaxRequest(javax.servlet.http.HttpServletRequest request)
- Specified by:
isAjaxRequest
in interfaceAJAXRedirectStrategy
-
getReferrer
public String getReferrer(javax.servlet.http.HttpServletRequest request)
- Specified by:
getReferrer
in interfaceAJAXRedirectStrategy
-
getUILocation
public String getUILocation(javax.servlet.http.HttpServletRequest request)
- Specified by:
getUILocation
in interfaceAJAXRedirectStrategy
-
getSystemUrl
public String getSystemUrl()
- Specified by:
getSystemUrl
in interfaceAJAXRedirectStrategy
-
-