net.serenitybdd.plugins.jira.service.JIRAConnection Maven / Gradle / Ivy
package net.serenitybdd.plugins.jira.service;
import net.serenitybdd.plugins.jira.client.JerseyJiraClient;
public class JIRAConnection {
private final JIRAConfiguration configuration;
private final JerseyJiraClient jiraClient;
public JIRAConnection() {
this(JIRAInfrastructure.getConfiguration());
}
public JIRAConnection(JIRAConfiguration configuration) {
this.configuration = configuration;
this.jiraClient = new JerseyJiraClient(configuration.getJiraWebserviceUrl(), configuration.getJiraUser(), configuration.getJiraPassword(), configuration.getProject());
}
public JerseyJiraClient getRestJiraClient() {
return jiraClient;
}
protected JIRAConfiguration getConfiguration() {
return configuration;
}
public String getJiraUser() {
return getConfiguration().getJiraUser();
}
public String getJiraPassword() {
return getConfiguration().getJiraPassword();
}
public String getJiraWebserviceUrl() {
return getConfiguration().getJiraWebserviceUrl();
}
public String getProject() {
return getConfiguration().getProject();
}
public void logout() { }
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy