Class OpenbisServiceFacadeFactory
- java.lang.Object
-
- ch.systemsx.cisd.openbis.dss.client.api.v1.OpenbisServiceFacadeFactory
-
- All Implemented Interfaces:
IOpenbisServiceFacadeFactory
public class OpenbisServiceFacadeFactory extends java.lang.Object implements IOpenbisServiceFacadeFactory
A factory creatingIOpenbisServiceFacade
instances.
-
-
Field Summary
Fields Modifier and Type Field Description static OpenbisServiceFacadeFactory
INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IOpenbisServiceFacade
tryCreate(java.lang.String sessionToken, java.lang.String openbisUrl, long timeoutInMillis)
Creates anOpenbisServiceFacade
instance that can be used to interact with an openBIS backend.static IOpenbisServiceFacade
tryCreate(java.lang.String username, java.lang.String password, java.lang.String openbisUrl, long timeoutInMillis)
Creates anOpenbisServiceFacade
instance that can be used to interact with an openBIS backend.IOpenbisServiceFacade
tryToCreate(java.lang.String sessionToken, java.lang.String openbisUrl, long timeoutInMillis)
Creates anOpenbisServiceFacade
instance that can be used to interact with an openBIS backend.IOpenbisServiceFacade
tryToCreate(java.lang.String username, java.lang.String password, java.lang.String openbisUrl, long timeoutInMillis)
Creates anOpenbisServiceFacade
instance that can be used to interact with an openBIS backend.
-
-
-
Field Detail
-
INSTANCE
public static OpenbisServiceFacadeFactory INSTANCE
-
-
Method Detail
-
tryToCreate
public IOpenbisServiceFacade tryToCreate(java.lang.String sessionToken, java.lang.String openbisUrl, long timeoutInMillis)
Description copied from interface:IOpenbisServiceFacadeFactory
Creates anOpenbisServiceFacade
instance that can be used to interact with an openBIS backend.- Specified by:
tryToCreate
in interfaceIOpenbisServiceFacadeFactory
- Parameters:
sessionToken
- token for existing sesstion in openBIS.openbisUrl
- the HTTP url of the remote openBIS server e.g. https://openbis.ethz.ch/openbis/timeoutInMillis
- a remote-call timeout.
-
tryToCreate
public IOpenbisServiceFacade tryToCreate(java.lang.String username, java.lang.String password, java.lang.String openbisUrl, long timeoutInMillis)
Description copied from interface:IOpenbisServiceFacadeFactory
Creates anOpenbisServiceFacade
instance that can be used to interact with an openBIS backend.- Specified by:
tryToCreate
in interfaceIOpenbisServiceFacadeFactory
- Parameters:
username
- an openBIS user id.password
- a password corresponding to theusername
parameter.openbisUrl
- the HTTP url of the remote openBIS server e.g. https://openbis.ethz.ch/openbis/timeoutInMillis
- a remote-call timeout.
-
tryCreate
public static IOpenbisServiceFacade tryCreate(java.lang.String username, java.lang.String password, java.lang.String openbisUrl, long timeoutInMillis)
Creates anOpenbisServiceFacade
instance that can be used to interact with an openBIS backend.- Parameters:
username
- an openBIS user id.password
- a password corresponding to theusername
parameter.openbisUrl
- the HTTP url of the remote openBIS server e.g. https://openbis.ethz.ch/openbis/timeoutInMillis
- a remote-call timeout.
-
tryCreate
public static IOpenbisServiceFacade tryCreate(java.lang.String sessionToken, java.lang.String openbisUrl, long timeoutInMillis)
Creates anOpenbisServiceFacade
instance that can be used to interact with an openBIS backend.- Parameters:
sessionToken
- token for existing sesstion in openBIS.openbisUrl
- the HTTP url of the remote openBIS server e.g. https://openbis.ethz.ch/openbis/timeoutInMillis
- a remote-call timeout.
-
-