Class HttpSniffer
java.lang.Object
com.norconex.crawler.web.fetch.impl.webdriver.HttpSniffer
- All Implemented Interfaces:
Configurable<HttpSnifferConfig>
Used to set and capture HTTP request/response headers, when enabled.
EXPERIMENTAL: The use of this class is experimental. It is known to not be supported properly with some web drivers and/or browsers. It can even be ignored altogether by some web drivers.
- Since:
- 3.0.0
-
Field Summary
FieldsFields inherited from interface com.norconex.commons.lang.config.Configurable
PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidconfigureBrowser(WebDriverBrowser browser, org.openqa.selenium.MutableCapabilities opts) booleaninthashCode()voidstart()voidstop()toString()CompletableFuture<com.norconex.crawler.web.fetch.impl.webdriver.HttpSniffer.SniffedResponseHeaders>
-
Field Details
-
PARAM_REQUEST_ID
- See Also:
-
HEADER_REQUEST_ID
- See Also:
-
-
Constructor Details
-
HttpSniffer
public HttpSniffer()
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
getAddress
-
track
public CompletableFuture<com.norconex.crawler.web.fetch.impl.webdriver.HttpSniffer.SniffedResponseHeaders> track(@NonNull @NonNull String requestId) -
configureBrowser
public void configureBrowser(WebDriverBrowser browser, org.openqa.selenium.MutableCapabilities opts) -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getConfiguration
- Specified by:
getConfigurationin interfaceConfigurable<HttpSnifferConfig>
-