Package io.micronaut.security.config
Class InterceptUrlMapPattern
- java.lang.Object
-
- io.micronaut.security.config.InterceptUrlMapPattern
-
@Immutable public class InterceptUrlMapPattern extends java.lang.Object
- Since:
- 1.0
- Author:
- Sergio del Amo
-
-
Constructor Summary
Constructors Constructor Description InterceptUrlMapPattern(java.lang.String pattern, java.util.List<java.lang.String> access, io.micronaut.http.HttpMethod httpMethod)
If the provided http method is null, the pattern will match all methods.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getAccess()
access getter.java.util.Optional<io.micronaut.http.HttpMethod>
getHttpMethod()
httpMethod getter.java.lang.String
getPattern()
pattern getter.
-
-
-
Constructor Detail
-
InterceptUrlMapPattern
public InterceptUrlMapPattern(java.lang.String pattern, java.util.List<java.lang.String> access, @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 Detail
-
getPattern
public java.lang.String getPattern()
pattern getter.- Returns:
- string e.g. /health
-
getAccess
public java.util.List<java.lang.String> getAccess()
access getter.- Returns:
- e.g. ['ROLE_USER', 'ROLE_ADMIN']
-
getHttpMethod
public java.util.Optional<io.micronaut.http.HttpMethod> getHttpMethod()
httpMethod getter.- Returns:
- e.g. HttpMethod.GET
-
-