blob: fb81d6f691df503bd748206ad65785cc1c3fc69b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package com.btr.proxy.search.browser.ie;
import java.net.URI;
import com.btr.proxy.util.UriFilter;
/*****************************************************************************
*
* @author Bernd Rosstauscher (proxyvole@rosstauscher.de) Copyright 2009
****************************************************************************/
public class IELocalByPassFilter implements UriFilter {
/*************************************************************************
* accept
* @see com.btr.proxy.util.UriFilter#accept(java.net.URI)
************************************************************************/
public boolean accept(URI uri) {
if (uri == null) {
return false;
}
String host = uri.getAuthority();
return host != null && !host.contains(".");
}
}
|