org.browsermob.proxy.http
Class BrowserMobHostNameResolver

java.lang.Object
  extended by 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


Field Summary
static ThreadLocal<Boolean> fakeSlow
           
 
Constructor Summary
BrowserMobHostNameResolver(Cache cache)
           
 
Method Summary
 void clearCache()
           
 boolean isCached(String hostname)
           
 List<String> original(String host)
           
 void remap(String source, String target)
           
 String remapping(String host)
           
 InetAddress resolve(String hostname)
           
 void setCacheTimeout(int timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fakeSlow

public static ThreadLocal<Boolean> fakeSlow
Constructor Detail

BrowserMobHostNameResolver

public BrowserMobHostNameResolver(Cache cache)
Method Detail

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.