public class HtmlResolver extends Object
Constructor and Description |
---|
HtmlResolver(HttpFetcherFactory httpFetcherFactory) |
Modifier and Type | Method and Description |
---|---|
List |
discoverHtml(UrlIdentifier identifier)
Performs HTML discovery on the supplied URL identifier.
|
List |
discoverHtml(UrlIdentifier identifier,
HttpFetcher httpFetcher)
Performs HTML discovery on the supplied URL identifier.
|
int |
getMaxRedirects()
Gets the internal limit configured for the maximum number of redirects
to be followed for the HTTP calls.
|
void |
setMaxRedirects(int maxRedirects)
Sets the maximum number of redirects to be followed for the HTTP calls.
|
@Inject public HtmlResolver(HttpFetcherFactory httpFetcherFactory)
public int getMaxRedirects()
public void setMaxRedirects(int maxRedirects)
public List discoverHtml(UrlIdentifier identifier) throws DiscoveryException
identifier
- The URL identifier.DiscoveryException
public List discoverHtml(UrlIdentifier identifier, HttpFetcher httpFetcher) throws DiscoveryException
identifier
- The URL identifier.httpFetcher
- HttpFetcher
object to use for placing the call.DiscoveryException
Copyright © 2017 Sxip. All rights reserved.