public final class HstsResolver extends Object
Class handling HSTS support for servers supporting it. Upon encountering the first secure URL from a site, it caches whether the URL root domain returns an HTTP response containing a "Strict-Transport-Security" entry and if it includes sub-domains. Any non secure URL on that same site will be converted to https if requested by the HSTS server directive (if any).
To always convert "http" to "https" regardless of a site support for HSTS,
you should rely on GenericURLNormalizer.Normalization.secureScheme
instead.
Modifier and Type | Method and Description |
---|---|
static void |
resolve(org.apache.http.client.HttpClient httpClient,
HttpDocInfo docInfo) |
public static void resolve(org.apache.http.client.HttpClient httpClient, HttpDocInfo docInfo)
Copyright © 2009–2023 Norconex Inc.. All rights reserved.