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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     

    Fields inherited from class org.springframework.security.web.DefaultRedirectStrategy

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    AJAXRedirectStrategyImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, UIProperties uiProperties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    calculateRedirectUrl(jakarta.servlet.http.HttpServletRequest request, String url)
     
    protected void
    doSendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url)
     
    getReferrer(jakarta.servlet.http.HttpServletRequest request)
     
     
    getUILocation(jakarta.servlet.http.HttpServletRequest request)
     
    boolean
    isAjaxRequest(jakarta.servlet.http.HttpServletRequest request)
     
    void
    sendRedirect(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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:
      sendRedirect in interface AJAXRedirectStrategy
      Specified by:
      sendRedirect in interface org.springframework.security.web.RedirectStrategy
      Overrides:
      sendRedirect in class org.springframework.security.web.DefaultRedirectStrategy
      Throws:
      IOException
    • doSendRedirect

      protected void doSendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url)
    • calculateRedirectUrl

      public String calculateRedirectUrl(jakarta.servlet.http.HttpServletRequest request, String url)
      Specified by:
      calculateRedirectUrl in interface AJAXRedirectStrategy
    • isAjaxRequest

      public boolean isAjaxRequest(jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      isAjaxRequest in interface AJAXRedirectStrategy
    • getReferrer

      public String getReferrer(jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      getReferrer in interface AJAXRedirectStrategy
    • getUILocation

      public String getUILocation(jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      getUILocation in interface AJAXRedirectStrategy
    • getSystemUrl

      public String getSystemUrl()
      Specified by:
      getSystemUrl in interface AJAXRedirectStrategy