public interface LegacyProxyServer
BrowserMobProxy.| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
addHeader(String name,
String value) |
void |
addRequestInterceptor(org.apache.http.HttpRequestInterceptor i)
Deprecated.
|
void |
addRequestInterceptor(RequestInterceptor interceptor) |
void |
addResponseInterceptor(org.apache.http.HttpResponseInterceptor i)
Deprecated.
|
void |
addResponseInterceptor(ResponseInterceptor interceptor) |
void |
autoBasicAuthorization(String domain,
String username,
String password) |
void |
blacklistRequests(String pattern,
int responseCode) |
void |
blacklistRequests(String pattern,
int responseCode,
String method) |
void |
cleanup() |
void |
clearBlacklist() |
void |
clearDNSCache() |
void |
clearRewriteRules() |
void |
clearWhitelist() |
void |
enableEmptyWhitelist(int responseCode) |
void |
endPage() |
List<BlacklistEntry> |
getBlacklistedRequests()
Deprecated.
|
Collection<BlacklistEntry> |
getBlacklistedUrls() |
InetAddress |
getConnectableLocalHost() |
Har |
getHar() |
InetAddress |
getLocalHost() |
int |
getPort() |
StreamManager |
getStreamManager() |
List<Pattern> |
getWhitelistRequests()
Deprecated.
|
int |
getWhitelistResponseCode() |
Collection<String> |
getWhitelistUrls() |
boolean |
isWhitelistEnabled() |
Har |
newHar(String initialPageRef) |
Har |
newHar(String initialPageRef,
String initialPageTitle) |
Har |
newPage(String pageRef) |
Har |
newPage(String pageRef,
String pageTitle) |
void |
remapHost(String source,
String target) |
void |
rewriteUrl(String match,
String replace) |
org.openqa.selenium.Proxy |
seleniumProxy() |
void |
setCaptureBinaryContent(boolean captureBinaryContent) |
void |
setCaptureContent(boolean captureContent) |
void |
setCaptureHeaders(boolean captureHeaders) |
void |
setConnectionTimeout(int connectionTimeout) |
void |
setDNSCacheTimeout(int timeout) |
void |
setDownstreamKbps(long downstreamKbps)
Deprecated.
|
void |
setLatency(long latency)
Deprecated.
|
void |
setLocalHost(InetAddress localHost) |
void |
setOptions(Map<String,String> options) |
void |
setPort(int port) |
void |
setRequestTimeout(int requestTimeout) |
void |
setRetryCount(int count) |
void |
setSocketOperationTimeout(int readTimeout) |
void |
setUpstreamKbps(long upstreamKbps)
Deprecated.
|
void |
start() |
void |
stop() |
void |
waitForNetworkTrafficToStop(long quietPeriodInMs,
long timeoutInMs) |
void |
whitelistRequests(String[] patterns,
int responseCode) |
void start()
org.openqa.selenium.Proxy seleniumProxy()
throws NameResolutionException
NameResolutionExceptionvoid cleanup()
void stop()
void abort()
int getPort()
void setPort(int port)
InetAddress getLocalHost()
InetAddress getConnectableLocalHost() throws UnknownHostException
UnknownHostExceptionvoid setLocalHost(InetAddress localHost)
Har getHar()
void endPage()
void setRetryCount(int count)
@Deprecated void addRequestInterceptor(org.apache.http.HttpRequestInterceptor i)
void addRequestInterceptor(RequestInterceptor interceptor)
@Deprecated void addResponseInterceptor(org.apache.http.HttpResponseInterceptor i)
void addResponseInterceptor(ResponseInterceptor interceptor)
StreamManager getStreamManager()
@Deprecated void setDownstreamKbps(long downstreamKbps)
@Deprecated void setUpstreamKbps(long upstreamKbps)
@Deprecated void setLatency(long latency)
void setRequestTimeout(int requestTimeout)
void setSocketOperationTimeout(int readTimeout)
void setConnectionTimeout(int connectionTimeout)
void clearRewriteRules()
void blacklistRequests(String pattern, int responseCode)
@Deprecated List<BlacklistEntry> getBlacklistedRequests()
Collection<BlacklistEntry> getBlacklistedUrls()
boolean isWhitelistEnabled()
@Deprecated List<Pattern> getWhitelistRequests()
Collection<String> getWhitelistUrls()
int getWhitelistResponseCode()
void clearBlacklist()
void whitelistRequests(String[] patterns, int responseCode)
void enableEmptyWhitelist(int responseCode)
void clearWhitelist()
void setCaptureHeaders(boolean captureHeaders)
void setCaptureContent(boolean captureContent)
void setCaptureBinaryContent(boolean captureBinaryContent)
void clearDNSCache()
void setDNSCacheTimeout(int timeout)
void waitForNetworkTrafficToStop(long quietPeriodInMs,
long timeoutInMs)
Copyright © 2016. All Rights Reserved.