public static final class TrafficCollectorImpl.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
TrafficCollector |
build() |
TrafficCollectorImpl.Builder |
collectHttps(net.lightbody.bmp.mitm.CertificateAndKeySource certificateAndKeySource) |
TrafficCollectorImpl.Builder |
filter(org.littleshoot.proxy.HttpFiltersSource filter) |
TrafficCollectorImpl.Builder |
filters(Collection<? extends org.littleshoot.proxy.HttpFiltersSource> val)
Adds all argument filters sources to this builder's filters list.
|
TrafficCollectorImpl.Builder |
harPostProcessor(HarPostProcessor harPostProcessor) |
TrafficCollectorImpl.Builder |
interceptingProxyInstantiator(Supplier<? extends net.lightbody.bmp.BrowserMobProxy> interceptingProxyInstantiator)
Sets the supplier of the proxy server instance that is used to intercept and collect traffic.
|
TrafficCollectorImpl.Builder |
nonAnonymizing() |
TrafficCollectorImpl.Builder |
onException(ExceptionReactor exceptionReactor) |
TrafficCollectorImpl.Builder |
upstreamProxy(InetSocketAddress address) |
TrafficCollectorImpl.Builder |
upstreamProxy(Supplier<InetSocketAddress> val) |
public TrafficCollectorImpl.Builder onException(ExceptionReactor exceptionReactor)
public TrafficCollectorImpl.Builder collectHttps(net.lightbody.bmp.mitm.CertificateAndKeySource certificateAndKeySource)
public TrafficCollectorImpl.Builder interceptingProxyInstantiator(Supplier<? extends net.lightbody.bmp.BrowserMobProxy> interceptingProxyInstantiator)
BrAwareBrowserMobProxyServer. To revert this behavior to a more hands-off implementation,
set this to a supplier of a BrowserMobProxyServer instance.interceptingProxyInstantiator - the instantiatorpublic TrafficCollectorImpl.Builder nonAnonymizing()
public TrafficCollectorImpl.Builder filter(org.littleshoot.proxy.HttpFiltersSource filter)
public TrafficCollectorImpl.Builder filters(Collection<? extends org.littleshoot.proxy.HttpFiltersSource> val)
val - the filters sources to addpublic TrafficCollectorImpl.Builder upstreamProxy(InetSocketAddress address)
public TrafficCollectorImpl.Builder upstreamProxy(Supplier<InetSocketAddress> val)
public TrafficCollectorImpl.Builder harPostProcessor(HarPostProcessor harPostProcessor)
public TrafficCollector build()
Copyright © 2016–2018. All rights reserved.