Class InterceptUrlMapPattern

java.lang.Object
io.micronaut.security.config.InterceptUrlMapPattern

public class InterceptUrlMapPattern extends Object
Since:
1.0
Author:
Sergio del Amo
  • 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. /health
      access - e.g. ['ROLE_USER', 'ROLE_ADMIN']
      httpMethod - e.g. HttpMethod.GET
  • Method Details

    • getPattern

      public String getPattern()
      pattern getter.
      Returns:
      string e.g. /health
    • getAccess

      public List<String> 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