Package io.micronaut.security.config
Class InterceptUrlMapPattern
java.lang.Object
io.micronaut.security.config.InterceptUrlMapPattern
- Since:
- 1.0
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorDescriptionInterceptUrlMapPattern
(String pattern, List<String> access, @Nullable io.micronaut.http.HttpMethod httpMethod) If the provided http method is null, the pattern will match all methods. -
Method Summary
Modifier and TypeMethodDescriptionaccess getter.@Nullable io.micronaut.http.HttpMethod
httpMethod getter.pattern getter.
-
Constructor Details
-
InterceptUrlMapPattern
public InterceptUrlMapPattern(String pattern, List<String> access, @Nullable @Nullable io.micronaut.http.HttpMethod httpMethod) If the provided http method is null, the pattern will match all methods.- Parameters:
pattern
- e.g. /healthaccess
- e.g. ['ROLE_USER', 'ROLE_ADMIN']httpMethod
- e.g. HttpMethod.GET
-
-
Method Details
-
getPattern
pattern getter.- Returns:
- string e.g. /health
-
getAccess
access getter.- Returns:
- e.g. ['ROLE_USER', 'ROLE_ADMIN']
-
getHttpMethod
@Nullable public @Nullable io.micronaut.http.HttpMethod getHttpMethod()httpMethod getter.- Returns:
- e.g. HttpMethod.GET
-