Class HandlerMappingIntrospectorRequestTransformer
java.lang.Object
org.springframework.security.web.access.HandlerMappingIntrospectorRequestTransformer
- All Implemented Interfaces:
AuthorizationManagerWebInvocationPrivilegeEvaluator.HttpServletRequestTransformer
public class HandlerMappingIntrospectorRequestTransformer
extends Object
implements AuthorizationManagerWebInvocationPrivilegeEvaluator.HttpServletRequestTransformer
Transforms by passing it into
HandlerMappingIntrospector.setCache(HttpServletRequest)
. Before, it wraps the
HttpServletRequest
to ensure that the methods needed work since some methods by
default throw UnsupportedOperationException
.-
Field Summary
Fields inherited from interface org.springframework.security.web.access.AuthorizationManagerWebInvocationPrivilegeEvaluator.HttpServletRequestTransformer
IDENTITY
-
Constructor Summary
ConstructorDescriptionHandlerMappingIntrospectorRequestTransformer
(org.springframework.web.servlet.handler.HandlerMappingIntrospector introspector) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.http.HttpServletRequest
transform
(jakarta.servlet.http.HttpServletRequest request) Return theHttpServletRequest
that is passed into theAuthorizationManager
-
Constructor Details
-
HandlerMappingIntrospectorRequestTransformer
public HandlerMappingIntrospectorRequestTransformer(org.springframework.web.servlet.handler.HandlerMappingIntrospector introspector)
-
-
Method Details
-
transform
public jakarta.servlet.http.HttpServletRequest transform(jakarta.servlet.http.HttpServletRequest request) Description copied from interface:AuthorizationManagerWebInvocationPrivilegeEvaluator.HttpServletRequestTransformer
Return theHttpServletRequest
that is passed into theAuthorizationManager
- Specified by:
transform
in interfaceAuthorizationManagerWebInvocationPrivilegeEvaluator.HttpServletRequestTransformer
- Parameters:
request
- theHttpServletRequest
created by theWebInvocationPrivilegeEvaluator
- Returns:
- the
HttpServletRequest
that is passed into theAuthorizationManager
-