public static List < Pattern > getNoProxyHostPatterns ( String noProxyHost ) { if ( noProxyHost == null ) return Collections . emptyList ( ) ; List < Pattern > r = Lists . newArrayList ( ) ; for ( String s : noProxyHost . split ( "[ \t\n,|]+" ) ) { if ( s . length ( ) == 0 ) continue ; r . add ( Pattern . compile ( s . replace ( "." , "\\." ) . replace ( "*" , ".*" ) ) ) ; } return r ; }
Returns the list of properly formatted no proxy host names .