org.browsermob.proxy
Class ProxyServer
java.lang.Object
org.browsermob.proxy.ProxyServer
public class ProxyServer
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProxyServer
public ProxyServer()
ProxyServer
public ProxyServer(int port)
start
public void start()
throws Exception
- Throws:
Exception
seleniumProxy
public org.openqa.selenium.Proxy seleniumProxy()
cleanup
public void cleanup()
stop
public void stop()
throws Exception
- Throws:
Exception
getPort
public int getPort()
setPort
public void setPort(int port)
getHar
public Har getHar()
newHar
public Har newHar(String initialPageRef)
newPage
public void newPage(String pageRef)
endPage
public void endPage()
setRetryCount
public void setRetryCount(int count)
remapHost
public void remapHost(String source,
String target)
addRequestInterceptor
public void addRequestInterceptor(org.apache.http.HttpRequestInterceptor i)
addResponseInterceptor
public void addResponseInterceptor(org.apache.http.HttpResponseInterceptor i)
setDownstreamKbps
public void setDownstreamKbps(long downstreamKbps)
setUpstreamKbps
public void setUpstreamKbps(long upstreamKbps)
setLatency
public void setLatency(long latency)
setRequestTimeout
public void setRequestTimeout(int requestTimeout)
setSocketOperationTimeout
public void setSocketOperationTimeout(int readTimeout)
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout)
autoBasicAuthorization
public void autoBasicAuthorization(String domain,
String username,
String password)
rewriteUrl
public void rewriteUrl(String match,
String replace)
blacklistRequests
public void blacklistRequests(String pattern,
int responseCode)
whitelistRequests
public void whitelistRequests(String[] patterns,
int responseCode)
setCaptureHeaders
public void setCaptureHeaders(boolean captureHeaders)
setCaptureContent
public void setCaptureContent(boolean captureContent)
clearDNSCache
public void clearDNSCache()
setDNSCacheTimeout
public void setDNSCacheTimeout(int timeout)
waitForNetworkTrafficToStop
public void waitForNetworkTrafficToStop(long quietPeriodInMs,
long timeoutInMs)
Copyright © 2011. All Rights Reserved.