@ Override protected synchronized void loadConfiguration ( ) throws IOException { LOGGER . info ( "Loading list of allowed external content locations from {}" , configPath ) ; try ( final Stream < String > stream = Files . lines ( Paths . get ( configPath ) ) ) { allowedList = stream . map ( line -> normalizePath ( line . trim ( ) . toLowerCase ( ) ) ) . filter ( line -> isAllowanceValid ( line ) ) . collect ( Collectors . toList ( ) ) ; } }
Loads the allowed list .