public interface Authenticator extends Pluggable, Configurable
Modifier and Type | Field and Description |
---|---|
static String |
X_POINT_ID |
Modifier and Type | Method and Description |
---|---|
URI |
authenticate(List<URI> redirectUrls,
FetcherOutput fetcherOutput,
Protocol protocol)
Authenticates the crawler for a particular site during the crawl,
if necessary.
|
AuthenticatorConfiguration |
getAuthConf() |
void |
preCrawlAuthenticate(Protocol protocol)
Authenticates the crawler for a particular site before the crawl starts.
|
void |
setAuthConf(AuthenticatorConfiguration conf)
Initializes the Authenticator with the given configuration.
|
getConf, setConf
static final String X_POINT_ID
void setAuthConf(AuthenticatorConfiguration conf)
conf
- AuthenticatorConfiguration getAuthConf()
void preCrawlAuthenticate(Protocol protocol) throws AuthenticationFailedException, RequestFailedException
protocol
- AuthenticationFailedException
RequestFailedException
URI authenticate(List<URI> redirectUrls, FetcherOutput fetcherOutput, Protocol protocol) throws AuthenticationFailedException, RequestFailedException
redirectUrls
- list of the URLs that have been followed during redirectfetcherOutput
- fetcherOutput object, includes Content object and Parse objectprotocol
- protocol that was used to fetch the pageAuthenticationFailedException
- the authentication failed. UrlProcessor
will log this but not try to refetch the page.RequestFailedException
- the login request was unsuccessful. UrlProcessor
will queue up the original URL for a retry.Copyright © 2007, 2017, Oracle and/or its affiliates. All rights reserved.