|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IssueTestConnectionSupport
This instance of this class is responsible for testing the connection to the issue tracker, i.e. for validating provider properties, such as server URL, proxy, credentials, etc.
Class doesn't necessarily verify the parsing properties, i.e. how the issues are extracted out of the comments, but it can check the validness of the issue as well as connection.
| Method Summary | |
|---|---|
java.lang.String |
testConnection(IssueProvider provider,
java.lang.String issueId)
Called to test connection for the given issue provider. |
| Method Detail |
|---|
@Nullable
java.lang.String testConnection(@NotNull
IssueProvider provider,
@NotNull
java.lang.String issueId)
The simpliest implementation needs to know the issue id to verify the connection, and the implementation might look like:
@NotNull
public String testConnection(@NotNull IssueProvider provider,
@NotNull String issueId) {
return (provider.findIssueById(issueId) != null) ?
null :
"Error: failed to fetch issue";
}
Hint: provider should not cache null results.
Some providers can be able to test the connection without particular issue.
provider - the issue provider to checkissueId - the issue id (is provided by the end user in a special dialog);
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||