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
ConstructorsConstructorDescriptionHandlerMappingIntrospectorRequestTransformer(org.springframework.web.servlet.handler.HandlerMappingIntrospector introspector) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.http.HttpServletRequesttransform(jakarta.servlet.http.HttpServletRequest request) Return theHttpServletRequestthat 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.HttpServletRequestTransformerReturn theHttpServletRequestthat is passed into theAuthorizationManager- Specified by:
transformin interfaceAuthorizationManagerWebInvocationPrivilegeEvaluator.HttpServletRequestTransformer- Parameters:
request- theHttpServletRequestcreated by theWebInvocationPrivilegeEvaluator- Returns:
- the
HttpServletRequestthat is passed into theAuthorizationManager
-