public abstract class Credential extends Object implements Serializable
Settings system assumes that subclasses implement a constructor that takes a name only.
Modifier and Type | Field and Description |
---|---|
protected String |
domain
The root domain this credential goes against: E.g.
|
Constructor and Description |
---|
Credential()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
attach(CrawlURI curi)
Attach this credentials avatar to the passed
curi . |
boolean |
detach(CrawlURI curi)
Detach this credential from passed curi.
|
boolean |
detachAll(CrawlURI curi)
Detach all credentials of this type from passed curi.
|
String |
getDomain() |
abstract String |
getKey() |
abstract String |
getPrerequisite(CrawlURI curi)
Return the authentication URI, either absolute or relative, that serves
as prerequisite the passed
curi . |
abstract boolean |
hasPrerequisite(CrawlURI curi) |
abstract boolean |
isEveryTime() |
abstract boolean |
isPost() |
abstract boolean |
isPrerequisite(CrawlURI curi) |
boolean |
rootUriMatch(ServerCache cache,
CrawlURI curi)
Test passed curi matches this credentials rootUri.
|
void |
setDomain(String domain) |
protected String domain
public String getDomain()
public void setDomain(String domain)
public void attach(CrawlURI curi)
curi
.
Override if credential knows internally what it wants to attach as
payloadcuri
- CrawlURI to load with credentials.public boolean detach(CrawlURI curi)
curi
- public boolean detachAll(CrawlURI curi)
curi
- public abstract boolean isPrerequisite(CrawlURI curi)
curi
- CrawlURI to look at.public abstract boolean hasPrerequisite(CrawlURI curi)
curi
- CrawlURI to look at.public abstract String getPrerequisite(CrawlURI curi)
curi
.curi
- CrawlURI to look at.public abstract String getKey()
public abstract boolean isEveryTime()
public abstract boolean isPost()
public boolean rootUriMatch(ServerCache cache, CrawlURI curi)
cache
- curi
- CrawlURI to test.Copyright © 2003–2019 Internet Archive. All rights reserved.