@Test public void testIsUseProxyByPattern( ) { boolean useProxyByPattern = ProxyHelper.isUseProxyByPattern( HOST, PATTERN ); assertFalse( "useProxyByPattern", useProxyByPattern ); }
static boolean isUseProxyByPattern( String host, String nonProxyHostsPattern ) { String nonProxyHostsPatternJava = convertToJavaPattern( nonProxyHostsPattern ); boolean useProxy = !isHostMatchesNonProxyHostsPattern( host, nonProxyHostsPatternJava ); log.info( "isUseProxyByPattern: useProxy = {}; host = '{}'", useProxy, host ); return useProxy; }
ProxyHelper { static boolean isUseProxyByPattern( String host, String nonProxyHostsPattern ) { String nonProxyHostsPatternJava = convertToJavaPattern( nonProxyHostsPattern ); boolean useProxy = !isHostMatchesNonProxyHostsPattern( host, nonProxyHostsPatternJava ); log.info( "isUseProxyByPattern: useProxy = {}; host = '{}'", useProxy, host ); return useProxy; } }
ProxyHelper { static boolean isUseProxyByPattern( String host, String nonProxyHostsPattern ) { String nonProxyHostsPatternJava = convertToJavaPattern( nonProxyHostsPattern ); boolean useProxy = !isHostMatchesNonProxyHostsPattern( host, nonProxyHostsPatternJava ); log.info( "isUseProxyByPattern: useProxy = {}; host = '{}'", useProxy, host ); return useProxy; } private  ProxyHelper(  ); }
ProxyHelper { static boolean isUseProxyByPattern( String host, String nonProxyHostsPattern ) { String nonProxyHostsPatternJava = convertToJavaPattern( nonProxyHostsPattern ); boolean useProxy = !isHostMatchesNonProxyHostsPattern( host, nonProxyHostsPatternJava ); log.info( "isUseProxyByPattern: useProxy = {}; host = '{}'", useProxy, host ); return useProxy; } private  ProxyHelper(  ); static Proxy getProxy( String url ); }
ProxyHelper { static boolean isUseProxyByPattern( String host, String nonProxyHostsPattern ) { String nonProxyHostsPatternJava = convertToJavaPattern( nonProxyHostsPattern ); boolean useProxy = !isHostMatchesNonProxyHostsPattern( host, nonProxyHostsPatternJava ); log.info( "isUseProxyByPattern: useProxy = {}; host = '{}'", useProxy, host ); return useProxy; } private  ProxyHelper(  ); static Proxy getProxy( String url ); static final String DEFAULT_PROTOCOL; }