Java Doc for CredentialStore.java in  » Web-Crawler » heritrix » org » archive » crawler » datamodel » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Crawler » heritrix » org.archive.crawler.datamodel 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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) $



Field Summary
final public static  StringATTR_CREDENTIALS
     Name of the contained credentials map type.
final public static  StringATTR_NAME
    

Constructor Summary
public  CredentialStore(String name)
     Constructor.

Method Summary
public  Credentialcreate(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  MapTypeget(Object context)
    
Parameters:
  context - Pass a CrawlURI, CrawlerSettings or UURI.
public  Credentialget(Object context, String name)
    
Parameters:
  context - Pass a CrawlURI, CrawlerSettings or UURI.
public static  CredentialStoregetCredentialStore(SettingsHandler context)
     Get a credential store reference.
Parameters:
  context - A settingshandler object.
public static  ListgetCredentialTypes()
    
public  Iteratoriterator(Object context)
    
Parameters:
  context - Pass a CrawlURI, CrawlerSettings or UURI.
public  voidremove(CrawlerSettings context, Credential credential)
     Delete the credential name.
Parameters:
  context - Pass a CrawlerSettings.
public  voidremove(CrawlerSettings context, String name)
     Delete the credential name.
Parameters:
  context - Pass a CrawlerSettings.
public  Setsubset(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.

Field Detail
ATTR_CREDENTIALS
final public static String ATTR_CREDENTIALS(Code)
Name of the contained credentials map type.



ATTR_NAME
final public static String ATTR_NAME(Code)




Constructor Detail
CredentialStore
public CredentialStore(String name)(Code)
Constructor.
Parameters:
  name - for this credential store.




Method Detail
create
public Credential create(CrawlerSettings context, String name, Class type) throws IllegalArgumentException, InvocationTargetException, InvalidAttributeValueException, AttributeNotFoundException(Code)
Create and add to the list a credential of the passed type giving the credential the passed name.
Parameters:
  context - Pass a CrawlerSettings. Used to setcontext. If null, we use global context.
Parameters:
  name - Name to give the manufactured credential. Should be uniqueelse the add of the credential to the list of credentials will fail.
Parameters:
  type - Type of credentials to get. The credential created and added to the list of credentials.
throws:
  IllegalArgumentException -
throws:
  AttributeNotFoundException -
throws:
  InvocationTargetException -
throws:
  InvalidAttributeValueException -



get
protected MapType get(Object context) throws AttributeNotFoundException(Code)

Parameters:
  context - Pass a CrawlURI, CrawlerSettings or UURI. Used to setcontext. If null, we use global context. A map of all credentials from passed context.
throws:
  AttributeNotFoundException -



get
public Credential get(Object context, String name) throws AttributeNotFoundException, MBeanException, ReflectionException(Code)

Parameters:
  context - Pass a CrawlURI, CrawlerSettings or UURI. Used to setcontext. If null, we use global context.
Parameters:
  name - Name to give the manufactured credential. Should be uniqueelse the add of the credential to the list of credentials will fail. Returns name'd credential.
throws:
  AttributeNotFoundException -
throws:
  MBeanException -
throws:
  ReflectionException -



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.



remove
public void remove(CrawlerSettings context, Credential credential) throws AttributeNotFoundException, IllegalArgumentException(Code)
Delete the credential name.
Parameters:
  context - Pass a CrawlerSettings. Used to setcontext. If null, we use global context.
Parameters:
  credential - Credential to delete.
throws:
  IllegalArgumentException -
throws:
  AttributeNotFoundException -



remove
public void remove(CrawlerSettings context, String name) throws IllegalArgumentException, AttributeNotFoundException(Code)
Delete the credential name.
Parameters:
  context - Pass a CrawlerSettings. Used to setcontext. If null, we use global context.
Parameters:
  name - Name of credential to delete.
throws:
  IllegalArgumentException -
throws:
  AttributeNotFoundException -



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.



Methods inherited from org.archive.crawler.settings.ModuleType
public Type addElement(CrawlerSettings settings, Type type) throws InvalidAttributeValueException(Code)(Java Doc)
protected void listUsedFiles(List<String> list)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.