Package org.cxbox.core.controller.http
Class AJAXRedirectStrategyImpl
java.lang.Object
org.springframework.security.web.DefaultRedirectStrategy
org.cxbox.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
-
Field Summary
FieldsFields inherited from class org.springframework.security.web.DefaultRedirectStrategy
logger -
Constructor Summary
ConstructorsConstructorDescriptionAJAXRedirectStrategyImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, UIProperties uiProperties) -
Method Summary
Modifier and TypeMethodDescriptioncalculateRedirectUrl(jakarta.servlet.http.HttpServletRequest request, String url) protected voiddoSendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url) getReferrer(jakarta.servlet.http.HttpServletRequest request) getUILocation(jakarta.servlet.http.HttpServletRequest request) booleanisAjaxRequest(jakarta.servlet.http.HttpServletRequest request) voidsendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url) Methods inherited from class org.springframework.security.web.DefaultRedirectStrategy
calculateRedirectUrl, isContextRelative, setContextRelative, setStatusCode
-
Field Details
-
UI_HASH
- See Also:
-
SLASH
- See Also:
-
-
Constructor Details
-
AJAXRedirectStrategyImpl
public AJAXRedirectStrategyImpl(@Qualifier("cxboxObjectMapper") com.fasterxml.jackson.databind.ObjectMapper objectMapper, UIProperties uiProperties)
-
-
Method Details
-
sendRedirect
public void sendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url) throws IOException - Specified by:
sendRedirectin interfaceAJAXRedirectStrategy- Specified by:
sendRedirectin interfaceorg.springframework.security.web.RedirectStrategy- Overrides:
sendRedirectin classorg.springframework.security.web.DefaultRedirectStrategy- Throws:
IOException
-
doSendRedirect
protected void doSendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url) -
calculateRedirectUrl
- Specified by:
calculateRedirectUrlin interfaceAJAXRedirectStrategy
-
isAjaxRequest
public boolean isAjaxRequest(jakarta.servlet.http.HttpServletRequest request) - Specified by:
isAjaxRequestin interfaceAJAXRedirectStrategy
-
getReferrer
- Specified by:
getReferrerin interfaceAJAXRedirectStrategy
-
getUILocation
- Specified by:
getUILocationin interfaceAJAXRedirectStrategy
-
getSystemUrl
- Specified by:
getSystemUrlin interfaceAJAXRedirectStrategy
-