BrowserMobProxyServer. This adapter class will be removed in a future release.@Deprecated public class BrowserMobProxyServerLegacyAdapter extends BrowserMobProxyServer implements LegacyProxyServer
LegacyProxyServer interface to use the modern littleproxy-based implementation.VIA_HEADER_ALIAS| Constructor and Description |
|---|
BrowserMobProxyServerLegacyAdapter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestInterceptor(org.apache.http.HttpRequestInterceptor i)
Deprecated.
|
void |
addRequestInterceptor(RequestInterceptor interceptor)
Deprecated.
|
void |
addResponseInterceptor(org.apache.http.HttpResponseInterceptor i)
Deprecated.
|
void |
addResponseInterceptor(ResponseInterceptor interceptor)
Deprecated.
|
void |
autoBasicAuthorization(String domain,
String username,
String password)
|
void |
cleanup()
Deprecated.
this method has no effect and will be removed from a future version
|
void |
clearDNSCache()
Deprecated.
Manipulate the DNS cache directly using
AdvancedHostResolver.clearDNSCache().
See BrowserMobProxyServer.getHostNameResolver() and the default implementation in ChainedHostResolver. |
void |
clearWhitelist()
Deprecated.
|
List<BlacklistEntry> |
getBlacklistedRequests()
Deprecated.
use getBlacklist()
|
Collection<BlacklistEntry> |
getBlacklistedUrls()
Deprecated.
|
InetAddress |
getConnectableLocalHost()
Deprecated.
|
InetAddress |
getLocalHost()
Deprecated.
|
StreamManager |
getStreamManager()
Deprecated.
use bandwidth control methods from the
BrowserMobProxy |
List<Pattern> |
getWhitelistRequests()
Deprecated.
|
int |
getWhitelistResponseCode()
Deprecated.
|
boolean |
isCaptureBinaryContent()
Deprecated.
use
BrowserMobProxyServer.getHarCaptureTypes() to check for relevant CaptureType |
boolean |
isCaptureContent()
Deprecated.
use
BrowserMobProxyServer.getHarCaptureTypes() to check for relevant CaptureType |
boolean |
isCaptureHeaders()
Deprecated.
use
BrowserMobProxyServer.getHarCaptureTypes() to check for relevant CaptureType |
void |
remapHost(String source,
String target)
Deprecated.
Remap hosts directly using
AdvancedHostResolver.remapHost(String, String).
See BrowserMobProxyServer.getHostNameResolver() and the default implementation in ChainedHostResolver. |
org.openqa.selenium.Proxy |
seleniumProxy()
Deprecated.
|
void |
setCaptureBinaryContent(boolean captureBinaryContent)
Deprecated.
use
BrowserMobProxyServer.setHarCaptureTypes(java.util.Set) to set the appropriate CaptureType |
void |
setCaptureContent(boolean captureContent)
Deprecated.
use
BrowserMobProxyServer.setHarCaptureTypes(java.util.Set) to set the appropriate CaptureType |
void |
setCaptureHeaders(boolean captureHeaders)
Deprecated.
use
BrowserMobProxyServer.setHarCaptureTypes(java.util.Set) to set the appropriate CaptureType |
void |
setConnectionTimeout(int connectionTimeoutMs)
|
void |
setDNSCacheTimeout(int timeout)
Deprecated.
Manipulate the DNS cache directly using
AdvancedHostResolver.setNegativeDNSCacheTimeout(int, java.util.concurrent.TimeUnit)
and AdvancedHostResolver.setPositiveDNSCacheTimeout(int, java.util.concurrent.TimeUnit).
See BrowserMobProxyServer.getHostNameResolver() and the default implementation in ChainedHostResolver. |
void |
setDownstreamKbps(long downstreamKbps)
Deprecated.
|
void |
setErrorOnUnsupportedOperation(boolean errorOnUnsupportedOperation)
Deprecated.
When true, this implementation of BrowserMobProxy will throw an UnsupportedOperationException when a method is not supported.
|
void |
setLatency(long latencyMs)
|
void |
setLocalHost(InetAddress localHost)
|
void |
setOptions(Map<String,String> options)
Deprecated.
use
BrowserMobProxyServer.setChainedProxy(java.net.InetSocketAddress) to set an upstream proxy |
void |
setPort(int port)
Deprecated.
specify the port using
BrowserMobProxyServer.start(int) or other start() methods with port parameters |
void |
setReadLimitKbps(long readLimitKbps)
Deprecated.
|
void |
setRequestTimeout(int requestTimeoutMs)
|
void |
setRetryCount(int count)
Deprecated.
|
void |
setSocketOperationTimeout(int readTimeoutMs)
|
void |
setUpstreamKbps(long upstreamKbps)
Deprecated.
|
void |
setWriteLimitKbps(long writeLimitKbps)
Deprecated.
|
void |
start()
Deprecated.
|
void |
waitForNetworkTrafficToStop(long quietPeriodInMs,
long timeoutInMs)
|
abort, addBrowserMobFilters, addFirstHttpFilterFactory, addHarCaptureFilter, addHeader, addHeaders, addHttpFilterFactory, addLastHttpFilterFactory, addRequestFilter, addResponseFilter, addWhitelistPattern, autoAuthorization, blacklistRequests, blacklistRequests, chainedProxyAuthorization, clearBlacklist, clearRewriteRules, disableHarCaptureTypes, disableHarCaptureTypes, disableWhitelist, enableEmptyWhitelist, enableHarCaptureTypes, enableHarCaptureTypes, endHar, endPage, getAllHeaders, getBlacklist, getChainedProxy, getClientBindAddress, getCurrentHarPage, getFilterFactories, getHar, getHarCaptureTypes, getHostNameResolver, getPort, getReadBandwidthLimit, getRewriteRules, getServerBindAddress, getWhitelistStatusCode, getWhitelistUrls, getWriteBandwidthLimit, isMitmDisabled, isStarted, isStopped, isWhitelistEnabled, newHar, newHar, newHar, newPage, newPage, newPage, removeAllHeaders, removeHeader, removeRewriteRule, rewriteUrl, rewriteUrls, setBlacklist, setChainedProxy, setChainedProxyManager, setConnectTimeout, setHarCaptureTypes, setHarCaptureTypes, setHostNameResolver, setIdleConnectionTimeout, setLatency, setMitmDisabled, setMitmManager, setReadBandwidthLimit, setRequestTimeout, setThreadPoolConfiguration, setTrustAllServers, setTrustSource, setUseEcc, setWriteBandwidthLimit, start, start, start, stop, stop, stopAutoAuthorization, waitForQuiescence, whitelistRequests, whitelistRequestsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabort, addHeader, blacklistRequests, blacklistRequests, clearBlacklist, clearRewriteRules, enableEmptyWhitelist, endPage, getHar, getPort, getWhitelistUrls, isWhitelistEnabled, newHar, newHar, newPage, newPage, rewriteUrl, stop, whitelistRequestspublic BrowserMobProxyServerLegacyAdapter()
public void setErrorOnUnsupportedOperation(boolean errorOnUnsupportedOperation)
errorOnUnsupportedOperation - when true, throws an exception when an operation is not supported@Deprecated public org.openqa.selenium.Proxy seleniumProxy() throws NameResolutionException
ClientUtil.createSeleniumProxy(BrowserMobProxy)seleniumProxy in interface LegacyProxyServerNameResolutionException@Deprecated public void setPort(int port)
BrowserMobProxyServer.start(int) or other start() methods with port parameterssetPort in interface LegacyProxyServer@Deprecated public InetAddress getLocalHost()
BrowserMobProxyServer.getClientBindAddress()getLocalHost in interface LegacyProxyServer@Deprecated public InetAddress getConnectableLocalHost() throws UnknownHostException
ClientUtil.getConnectableAddress()getConnectableLocalHost in interface LegacyProxyServerUnknownHostException@Deprecated public void setLocalHost(InetAddress localHost)
BrowserMobProxyServer.start(int, java.net.InetAddress) or BrowserMobProxyServer.start(int, java.net.InetAddress, java.net.InetAddress)setLocalHost in interface LegacyProxyServerpublic void start()
start in interface BrowserMobProxystart in interface LegacyProxyServerstart in class BrowserMobProxyServerpublic void setRetryCount(int count)
setRetryCount in interface LegacyProxyServer@Deprecated public StreamManager getStreamManager()
BrowserMobProxygetStreamManager in interface LegacyProxyServer@Deprecated public void setDownstreamKbps(long downstreamKbps)
BrowserMobProxyServer.setWriteBandwidthLimit(long)setDownstreamKbps in interface LegacyProxyServer@Deprecated public void setUpstreamKbps(long upstreamKbps)
BrowserMobProxyServer.setReadBandwidthLimit(long)setUpstreamKbps in interface LegacyProxyServer@Deprecated public void setLatency(long latencyMs)
setLatency in interface LegacyProxyServer@Deprecated public void setReadLimitKbps(long readLimitKbps)
BrowserMobProxyServer.setReadBandwidthLimit(long)@Deprecated public void setWriteLimitKbps(long writeLimitKbps)
BrowserMobProxyServer.setWriteBandwidthLimit(long)@Deprecated public void addRequestInterceptor(org.apache.http.HttpRequestInterceptor i)
addRequestInterceptor in interface LegacyProxyServer@Deprecated public void addRequestInterceptor(RequestInterceptor interceptor)
addRequestInterceptor in interface LegacyProxyServer@Deprecated public void addResponseInterceptor(org.apache.http.HttpResponseInterceptor i)
addResponseInterceptor in interface LegacyProxyServer@Deprecated public void addResponseInterceptor(ResponseInterceptor interceptor)
addResponseInterceptor in interface LegacyProxyServer@Deprecated public List<BlacklistEntry> getBlacklistedRequests()
getBlacklistedRequests in interface LegacyProxyServer@Deprecated public Collection<BlacklistEntry> getBlacklistedUrls()
BrowserMobProxyServer.getBlacklist()getBlacklistedUrls in interface LegacyProxyServer@Deprecated public int getWhitelistResponseCode()
BrowserMobProxyServer.getWhitelistStatusCode()getWhitelistResponseCode in interface LegacyProxyServer@Deprecated public void clearWhitelist()
BrowserMobProxyServer.disableWhitelist()clearWhitelist in interface LegacyProxyServer@Deprecated public List<Pattern> getWhitelistRequests()
BrowserMobProxyServer.getWhitelistUrls()getWhitelistRequests in interface LegacyProxyServer@Deprecated public void waitForNetworkTrafficToStop(long quietPeriodInMs, long timeoutInMs)
waitForNetworkTrafficToStop in interface LegacyProxyServer@Deprecated public boolean isCaptureHeaders()
BrowserMobProxyServer.getHarCaptureTypes() to check for relevant CaptureType@Deprecated public void setCaptureHeaders(boolean captureHeaders)
BrowserMobProxyServer.setHarCaptureTypes(java.util.Set) to set the appropriate CaptureTypesetCaptureHeaders in interface LegacyProxyServer@Deprecated public boolean isCaptureContent()
BrowserMobProxyServer.getHarCaptureTypes() to check for relevant CaptureType@Deprecated public void setCaptureContent(boolean captureContent)
BrowserMobProxyServer.setHarCaptureTypes(java.util.Set) to set the appropriate CaptureTypesetCaptureContent in interface LegacyProxyServer@Deprecated public boolean isCaptureBinaryContent()
BrowserMobProxyServer.getHarCaptureTypes() to check for relevant CaptureType@Deprecated public void setCaptureBinaryContent(boolean captureBinaryContent)
BrowserMobProxyServer.setHarCaptureTypes(java.util.Set) to set the appropriate CaptureTypesetCaptureBinaryContent in interface LegacyProxyServer@Deprecated public void cleanup()
cleanup in interface LegacyProxyServer@Deprecated public void remapHost(String source, String target)
AdvancedHostResolver.remapHost(String, String).
See BrowserMobProxyServer.getHostNameResolver() and the default implementation in ChainedHostResolver.remapHost in interface LegacyProxyServer@Deprecated public void clearDNSCache()
AdvancedHostResolver.clearDNSCache().
See BrowserMobProxyServer.getHostNameResolver() and the default implementation in ChainedHostResolver.clearDNSCache in interface LegacyProxyServer@Deprecated public void setDNSCacheTimeout(int timeout)
AdvancedHostResolver.setNegativeDNSCacheTimeout(int, java.util.concurrent.TimeUnit)
and AdvancedHostResolver.setPositiveDNSCacheTimeout(int, java.util.concurrent.TimeUnit).
See BrowserMobProxyServer.getHostNameResolver() and the default implementation in ChainedHostResolver.setDNSCacheTimeout in interface LegacyProxyServer@Deprecated public void setConnectionTimeout(int connectionTimeoutMs)
setConnectionTimeout in interface LegacyProxyServer@Deprecated public void setSocketOperationTimeout(int readTimeoutMs)
setSocketOperationTimeout in interface LegacyProxyServer@Deprecated public void setRequestTimeout(int requestTimeoutMs)
setRequestTimeout in interface LegacyProxyServer@Deprecated public void autoBasicAuthorization(String domain, String username, String password)
BrowserMobProxyServer.autoAuthorization(String, String, String, net.lightbody.bmp.proxy.auth.AuthType)autoBasicAuthorization in interface LegacyProxyServer@Deprecated public void setOptions(Map<String,String> options)
BrowserMobProxyServer.setChainedProxy(java.net.InetSocketAddress) to set an upstream proxysetOptions in interface LegacyProxyServerCopyright © 2017. All rights reserved.