| org.archive.crawler.settings.ModuleType org.archive.crawler.datamodel.CredentialStore
CredentialStore | public class CredentialStore extends ModuleType (Code) | | Front door to the credential store.
Come here to get at credentials.
See Credential
Store Design.
author: stack version: $Revision: 4656 $, $Date: 2006-09-25 21:34:50 +0000 (Mon, 25 Sep 2006) $ |
Method Summary | |
public Credential | create(CrawlerSettings context, String name, Class type) Create and add to the list a credential of the passed type
giving the credential the passed name .
Parameters: context - Pass a CrawlerSettings. | protected MapType | get(Object context) Parameters: context - Pass a CrawlURI, CrawlerSettings or UURI. | public Credential | get(Object context, String name) Parameters: context - Pass a CrawlURI, CrawlerSettings or UURI. | public static CredentialStore | getCredentialStore(SettingsHandler context) Get a credential store reference.
Parameters: context - A settingshandler object. | public static List | getCredentialTypes() | public Iterator | iterator(Object context) Parameters: context - Pass a CrawlURI, CrawlerSettings or UURI. | public void | remove(CrawlerSettings context, Credential credential) Delete the credential name .
Parameters: context - Pass a CrawlerSettings. | public void | remove(CrawlerSettings context, String name) Delete the credential name .
Parameters: context - Pass a CrawlerSettings. | public Set | subset(CrawlURI context, Class type) Return set made up of all credentials of the passed
type .
Parameters: context - Pass a CrawlURI or a CrawlerSettings. | public Set<Credential> | subset(CrawlURI context, Class type, String rootUri) Return set made up of all credentials of the passed
type .
Parameters: context - Pass a CrawlURI or a CrawlerSettings. |
ATTR_CREDENTIALS | final public static String ATTR_CREDENTIALS(Code) | | Name of the contained credentials map type.
|
CredentialStore | public CredentialStore(String name)(Code) | | Constructor.
Parameters: name - for this credential store. |
getCredentialStore | public static CredentialStore getCredentialStore(SettingsHandler context)(Code) | | Get a credential store reference.
Parameters: context - A settingshandler object. A credential store or null if we failed getting one. |
getCredentialTypes | public static List getCredentialTypes()(Code) | | Unmodifable list of credential types. |
iterator | public Iterator iterator(Object context)(Code) | | Parameters: context - Pass a CrawlURI, CrawlerSettings or UURI. Used to setcontext. If null, we use global context. An iterator or null. |
subset | public Set subset(CrawlURI context, Class type)(Code) | | Return set made up of all credentials of the passed
type .
Parameters: context - Pass a CrawlURI or a CrawlerSettings. Used to setcontext. If null, we use global context. Parameters: type - Type of the list to return. Type is some superclass ofcredentials. Unmodifable sublist of all elements of passed type. |
subset | public Set<Credential> subset(CrawlURI context, Class type, String rootUri)(Code) | | Return set made up of all credentials of the passed
type .
Parameters: context - Pass a CrawlURI or a CrawlerSettings. Used to setcontext. If null, we use global context. Parameters: type - Type of the list to return. Type is some superclass ofcredentials. Parameters: rootUri - RootUri to match. May be null. In this case we returnall. Currently we expect the CrawlServer name to equate to root Uri.Its not. Currently it doesn't distingush between servers of same namebut different ports (e.g. http and https). Unmodifable sublist of all elements of passed type. |
|
|