Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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. /health
        access - 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