public class InterceptUrlMapPattern
extends java.lang.Object
Constructor and 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.
|
Modifier and Type | Method and 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.
|
public InterceptUrlMapPattern(java.lang.String pattern, java.util.List<java.lang.String> access, @Nullable io.micronaut.http.HttpMethod httpMethod)
pattern
- e.g. /healthaccess
- e.g. ['ROLE_USER', 'ROLE_ADMIN']httpMethod
- e.g. HttpMethod.GETpublic java.lang.String getPattern()
public java.util.List<java.lang.String> getAccess()
public java.util.Optional<io.micronaut.http.HttpMethod> getHttpMethod()