Class WebHttpSessionRequestCache
- java.lang.Object
-
- org.springframework.security.web.savedrequest.HttpSessionRequestCache
-
- de.hybris.platform.yacceleratorstorefront.security.impl.WebHttpSessionRequestCache
-
- All Implemented Interfaces:
java.io.Serializable
,org.springframework.security.web.savedrequest.RequestCache
public class WebHttpSessionRequestCache extends org.springframework.security.web.savedrequest.HttpSessionRequestCache implements java.io.Serializable
Extension of HttpSessionRequestCache that allows pass through of cookies from the current request. This is required to allow the GUIDInterceptor to see the secure cookie written during authentication. The RequestCache stores the SavedRequest in the HttpSession, this is then restored perfectly. Unfortunately the saved request also hides new cookies that have been written since the saved request was created. This implementation allows the current request's cookie values to override the cookies within the saved request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebHttpSessionRequestCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
calculateRelativeRedirectUrl(java.lang.String contextPath, java.lang.String url)
javax.servlet.http.HttpServletRequest
getMatchingRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected org.springframework.security.web.PortResolver
getPortResolver()
protected org.springframework.security.web.util.matcher.RequestMatcher
getRequestMatcher()
SessionService
getSessionService()
protected boolean
isCreateSessionAllowed()
void
saveRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
setCreateSessionAllowed(boolean createSessionAllowed)
void
setPortResolver(org.springframework.security.web.PortResolver portResolver)
void
setRequestMatcher(org.springframework.security.web.util.matcher.RequestMatcher requestMatcher)
void
setSessionService(SessionService sessionService)
-
-
-
Method Detail
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getSessionService
public SessionService getSessionService()
-
setRequestMatcher
public void setRequestMatcher(org.springframework.security.web.util.matcher.RequestMatcher requestMatcher)
- Overrides:
setRequestMatcher
in classorg.springframework.security.web.savedrequest.HttpSessionRequestCache
-
setPortResolver
public void setPortResolver(org.springframework.security.web.PortResolver portResolver)
- Overrides:
setPortResolver
in classorg.springframework.security.web.savedrequest.HttpSessionRequestCache
-
setCreateSessionAllowed
public void setCreateSessionAllowed(boolean createSessionAllowed)
- Overrides:
setCreateSessionAllowed
in classorg.springframework.security.web.savedrequest.HttpSessionRequestCache
-
saveRequest
public void saveRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
- Specified by:
saveRequest
in interfaceorg.springframework.security.web.savedrequest.RequestCache
- Overrides:
saveRequest
in classorg.springframework.security.web.savedrequest.HttpSessionRequestCache
-
isCreateSessionAllowed
protected boolean isCreateSessionAllowed()
-
getPortResolver
protected org.springframework.security.web.PortResolver getPortResolver()
-
getRequestMatcher
protected org.springframework.security.web.util.matcher.RequestMatcher getRequestMatcher()
-
getMatchingRequest
public javax.servlet.http.HttpServletRequest getMatchingRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
- Specified by:
getMatchingRequest
in interfaceorg.springframework.security.web.savedrequest.RequestCache
- Overrides:
getMatchingRequest
in classorg.springframework.security.web.savedrequest.HttpSessionRequestCache
-
calculateRelativeRedirectUrl
protected java.lang.String calculateRelativeRedirectUrl(java.lang.String contextPath, java.lang.String url)
-
-