Community
Participate
Working Groups
The callback/provider class should handle the following cases: - query the user for credentials if authentication fails - provide proxy information - verify ssl certificates and query user if certificate is invalid
Created attachment 81224 [details] callback class The patch adds a new class AbstractWebLocation which has methods for retrieving credentials and proxy information. The idea is to use this class instead of passing thw data as individual arguments. I will post a second patch later that demonstrates how to use the new API to prompt the user for credentials.
Created attachment 81225 [details] mylyn/context/zip
Rob, please review and apply.
Patch applied.
Created attachment 81228 [details] web location classes for TaskRepository This patch contains the tasks API for the new WebLocation class. It provides two factories for creating web locations for TaskRepository objects: one for core and one for UI. The split is necessary since locations need to be available to core but also need to hook into the UI to prompt the user for passwords and such. Basically connectors will start out with a TaskRepositoryLocationFactory and when the connector ui starts up it will replace that factory in the connector core with a TaskRepositoryLocationFactoryUi. I will attach a patch to bug 207531 that demonstrates how the API will be used for the Trac connector.
Created attachment 81229 [details] mylyn/context/zip
Looks good. Patch applied.
Thanks Rob!