mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
implement client repository methods
This commit is contained in:
@@ -80,11 +80,22 @@ public class JerseyClientSession implements ScmClientSession
|
||||
@Override
|
||||
public void close() throws IOException
|
||||
{
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
client.destroy();
|
||||
}
|
||||
|
||||
//~--- get methods ----------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Client getClient()
|
||||
{
|
||||
return client;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
@@ -106,7 +117,7 @@ public class JerseyClientSession implements ScmClientSession
|
||||
@Override
|
||||
public ClientHandler<Repository> getRepositoryHandler()
|
||||
{
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
return new JerseyRepositoryClientHandler(this);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -118,7 +129,18 @@ public class JerseyClientSession implements ScmClientSession
|
||||
@Override
|
||||
public ScmState getState()
|
||||
{
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
return state;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public ScmUrlProvider getUrlProvider()
|
||||
{
|
||||
return urlProvider;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user