use of net.nemerosa.ontrack.extension.jira.client.JIRAClientImpl in project ontrack by nemerosa.
the class JIRASessionFactoryImpl method create.
@Override
public JIRASession create(JIRAConfiguration configuration) {
// Creates a HTTP JSON client
JsonClient jsonClient = clientFactory.getJsonClient(new ClientConnection(configuration.getUrl(), configuration.getUser(), configuration.getPassword()));
// Creates the client
JIRAClient client = new JIRAClientImpl(jsonClient);
// Creates the session
return new JIRASession() {
@Override
public JIRAClient getClient() {
return client;
}
@Override
public void close() {
client.close();
}
};
}
Aggregations