org.browsermob.proxy.http
Class BrowserMobHostNameResolver
java.lang.Object
org.browsermob.proxy.http.BrowserMobHostNameResolver
- All Implemented Interfaces:
- org.apache.http.conn.scheme.HostNameResolver
public class BrowserMobHostNameResolver
- extends Object
- implements org.apache.http.conn.scheme.HostNameResolver
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fakeSlow
public static ThreadLocal<Boolean> fakeSlow
BrowserMobHostNameResolver
public BrowserMobHostNameResolver(Cache cache)
resolve
public InetAddress resolve(String hostname)
throws IOException
- Specified by:
resolve in interface org.apache.http.conn.scheme.HostNameResolver
- Throws:
IOException
remap
public void remap(String source,
String target)
remapping
public String remapping(String host)
original
public List<String> original(String host)
clearCache
public void clearCache()
setCacheTimeout
public void setCacheTimeout(int timeout)
isCached
public boolean isCached(String hostname)
throws TextParseException
- Throws:
TextParseException
Copyright © 2011. All Rights Reserved.