private boolean acceptTargetUrl ( String urlS ) { // Whitelist has precedence. Only patterns on the white list are allowed if ( whiteList != null ) { return checkPattern ( whiteList , urlS , true ) ; } // Then blacklist: Everything on this list is forbidden if ( blackList != null ) { return checkPattern ( blackList , urlS , false ) ; } // If no list is configured, then everything is allowed return true ; }
Whether a given JMX Service URL is acceptable