Class DssComponentFactory
- java.lang.Object
-
- ch.systemsx.cisd.openbis.dss.client.api.v1.DssComponentFactory
-
public class DssComponentFactory extends java.lang.Object
A class that creates DssComponents.
-
-
Constructor Summary
Constructors Constructor Description DssComponentFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IDssComponent
tryCreate(java.lang.String sessionToken, java.lang.String openBISUrl)
static IDssComponent
tryCreate(java.lang.String sessionToken, java.lang.String openBISUrl, long timeoutInMillis)
Public factory method for creating an IDssComponent for a user that has already been authenticated.static IDssComponent
tryCreate(java.lang.String user, java.lang.String password, java.lang.String openBISUrl)
static IDssComponent
tryCreate(java.lang.String user, java.lang.String password, java.lang.String openBISUrl, long timeoutInMillis)
Public factory method for creating an IDssComponent with a username and password.
-
-
-
Method Detail
-
tryCreate
public static IDssComponent tryCreate(java.lang.String user, java.lang.String password, java.lang.String openBISUrl, long timeoutInMillis)
Public factory method for creating an IDssComponent with a username and password.- Parameters:
user
- The user namepassword
- The user's passwordopenBISUrl
- The URL to openBIStimeoutInMillis
- network timeout when connecting to remote services
-
tryCreate
public static IDssComponent tryCreate(java.lang.String sessionToken, java.lang.String openBISUrl, long timeoutInMillis)
Public factory method for creating an IDssComponent for a user that has already been authenticated.- Parameters:
sessionToken
- The session token provided by authenticationopenBISUrl
- The URL to openBIStimeoutInMillis
- network timeout when connecting to remote services
-
tryCreate
public static IDssComponent tryCreate(java.lang.String user, java.lang.String password, java.lang.String openBISUrl)
SeetryCreate(String, String, String, long)
. The timeout is fixed to 15 min.
-
tryCreate
public static IDssComponent tryCreate(java.lang.String sessionToken, java.lang.String openBISUrl)
SeetryCreate(String, String, long)
. The timeout is fixed to 15 min.
-
-