Package io.micronaut.security.config
Class DefaultInterceptUrlPatternModifier
java.lang.Object
io.micronaut.security.config.DefaultInterceptUrlPatternModifier
- All Implemented Interfaces:
InterceptUrlPatternModifier
@Requires(beans={io.micronaut.http.context.ServerContextPathProvider.class,SecurityConfiguration.class})
@Singleton
public class DefaultInterceptUrlPatternModifier
extends Object
implements InterceptUrlPatternModifier
Decorates a InterceptUrlPattern}. If
SecurityConfiguration.isInterceptUrlMapPrependPatternWithContextPath()
is set to true
the URL patterns are prepended with the server context path if set.- Since:
- 3.7.3
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorDescriptionDefaultInterceptUrlPatternModifier
(SecurityConfiguration securityConfiguration, io.micronaut.http.context.ServerContextPathProvider serverContextPathProvider) -
Method Summary
Modifier and TypeMethodDescription@NonNull InterceptUrlMapPattern
modify
(@NonNull InterceptUrlMapPattern interceptUrlMapPattern)
-
Constructor Details
-
DefaultInterceptUrlPatternModifier
public DefaultInterceptUrlPatternModifier(SecurityConfiguration securityConfiguration, io.micronaut.http.context.ServerContextPathProvider serverContextPathProvider)
-
-
Method Details
-
modify
@NonNull public @NonNull InterceptUrlMapPattern modify(@NonNull @NonNull InterceptUrlMapPattern interceptUrlMapPattern) - Specified by:
modify
in interfaceInterceptUrlPatternModifier
- Parameters:
interceptUrlMapPattern
- Intercept url pattern- Returns:
- the intercepUrlMapPattern after modification.
-