Search in sources :

Example 1 with JiraHttpClient

use of com.synopsys.integration.jira.common.rest.JiraHttpClient in project hub-alert by blackducksoftware.

the class JiraServerProperties method createJiraServicesServerFactory.

public JiraServerServiceFactory createJiraServicesServerFactory(Logger logger, Gson gson) throws IssueTrackerException {
    JiraServerRestConfig jiraServerConfig = createJiraServerConfig();
    Slf4jIntLogger intLogger = new Slf4jIntLogger(logger);
    JiraHttpClient jiraHttpClient = jiraServerConfig.createJiraHttpClient(intLogger);
    return new JiraServerServiceFactory(intLogger, jiraHttpClient, gson);
}
Also used : JiraHttpClient(com.synopsys.integration.jira.common.rest.JiraHttpClient) JiraServerServiceFactory(com.synopsys.integration.jira.common.server.service.JiraServerServiceFactory) JiraServerRestConfig(com.synopsys.integration.jira.common.server.configuration.JiraServerRestConfig) Slf4jIntLogger(com.synopsys.integration.log.Slf4jIntLogger)

Example 2 with JiraHttpClient

use of com.synopsys.integration.jira.common.rest.JiraHttpClient in project hub-alert by blackducksoftware.

the class JiraCloudProperties method createJiraServicesCloudFactory.

public JiraCloudServiceFactory createJiraServicesCloudFactory(Logger logger, Gson gson) throws IssueTrackerException {
    JiraCloudRestConfig jiraServerConfig = createJiraServerConfig();
    Slf4jIntLogger intLogger = new Slf4jIntLogger(logger);
    JiraHttpClient jiraHttpClient = jiraServerConfig.createJiraHttpClient(intLogger);
    return new JiraCloudServiceFactory(intLogger, jiraHttpClient, gson);
}
Also used : JiraHttpClient(com.synopsys.integration.jira.common.rest.JiraHttpClient) Slf4jIntLogger(com.synopsys.integration.log.Slf4jIntLogger) JiraCloudRestConfig(com.synopsys.integration.jira.common.cloud.configuration.JiraCloudRestConfig) JiraCloudServiceFactory(com.synopsys.integration.jira.common.cloud.service.JiraCloudServiceFactory)

Aggregations

JiraHttpClient (com.synopsys.integration.jira.common.rest.JiraHttpClient)2 Slf4jIntLogger (com.synopsys.integration.log.Slf4jIntLogger)2 JiraCloudRestConfig (com.synopsys.integration.jira.common.cloud.configuration.JiraCloudRestConfig)1 JiraCloudServiceFactory (com.synopsys.integration.jira.common.cloud.service.JiraCloudServiceFactory)1 JiraServerRestConfig (com.synopsys.integration.jira.common.server.configuration.JiraServerRestConfig)1 JiraServerServiceFactory (com.synopsys.integration.jira.common.server.service.JiraServerServiceFactory)1