mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
implement createSession of ScmClientProvider
This commit is contained in:
@@ -42,6 +42,8 @@ import sonia.scm.user.User;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
import com.sun.jersey.api.client.Client;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
@@ -51,6 +53,24 @@ import java.io.IOException;
|
||||
public class JerseyClientSession implements ScmClientSession
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructs ...
|
||||
*
|
||||
*
|
||||
* @param client
|
||||
* @param urlProvider
|
||||
* @param state
|
||||
*/
|
||||
public JerseyClientSession(Client client, ScmUrlProvider urlProvider,
|
||||
ScmState state)
|
||||
{
|
||||
this.client = client;
|
||||
this.urlProvider = urlProvider;
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
//~--- methods --------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
@@ -112,4 +132,15 @@ public class JerseyClientSession implements ScmClientSession
|
||||
{
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
//~--- fields ---------------------------------------------------------------
|
||||
|
||||
/** Field description */
|
||||
private Client client;
|
||||
|
||||
/** Field description */
|
||||
private ScmState state;
|
||||
|
||||
/** Field description */
|
||||
private ScmUrlProvider urlProvider;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user