undertow/src/main/java/org/wildfly/extension/undertow/security/jacc/WarJACCService.java
static int getPatternType(String urlPattern) {
        int type = EXACT;
        if (urlPattern.startsWith("*."))
            type = EXTENSION;
        else if (urlPattern.startsWith("/") && urlPattern.endsWith("/*"))
            type = PREFIX;
        else if (urlPattern.equals("/"))
            type = DEFAULT;
        return type;
    }
static int getPatternType(String urlPattern) {
        int type = EXACT;
        if (urlPattern.startsWith("*."))
            type = EXTENSION;
        else if (urlPattern.startsWith("/") && urlPattern.endsWith("/*"))
            type = PREFIX;
        else if (urlPattern.equals("/"))
            type = DEFAULT;
        return type;
    }
static int getPatternType ( String urlPattern ) { int type = EXACT ; if ( urlPattern . startsWith ( "*." ) ) type = EXTENSION ; else if ( urlPattern . startsWith ( "/" ) && urlPattern . endsWith ( "/*" ) ) type = PREFIX ; else if ( urlPattern . equals ( "/" ) ) type = DEFAULT ; return type ; }
Determine the url-pattern type

@param urlPattern - the raw url-pattern value
@return one of EXACT, EXTENSION, PREFIX, DEFAULT
Determine the url - pattern type