private boolean checkServerPrefixes(final String server){
  boolean accept=false;
  if (prefixes == null) {
    accept=true;
  }
 else {
    for (    String prefix : prefixes.split(" ")) {
      if (server.startsWith(prefix)) {
        accept=true;
        break;
      }
    }
  }
  if (!accept) {
    LOGGER.warn("server URL {} does not have a prefix {}",server,prefixes);
  }
  return accept;
}

private boolean checkServerPrefixes ( final String server ) { boolean accept = false ; if ( prefixes == null ) { accept = true ; } else { for ( String prefix : prefixes . split ( " " ) ) { if ( server . startsWith ( prefix ) ) { accept = true ; break ; } } } if ( ! accept ) { LOGGER . warn ( "server URL {} does not have a prefix {}" , server , prefixes ) ; } return accept ; }
returns whether the server prefix is in the list of acceptable prefixes , as given by the space - separated configuration parameter value for ' accepted - server - prefixes ' .
