Consider credential preconditions. Looks to see if any credential preconditions (e.g. html form login credentials) for this
CrawlServer
. If there are, have they been run already? If not, make the running of these logins a precondition of accessing any other url on this
CrawlServer
.
One day, do optimization and avoid running the bulk of the code below. Argument for running the code everytime is that overrides and refinements may change what comes back from credential store.
@param curi CrawlURI we're checking for any required preconditions.
@return True, if this curi
has a precondition that needs tobe met before we can proceed. False if we can precede to process this url.