Class DssComponentFactory


  • public class DssComponentFactory
    extends java.lang.Object
    A class that creates DssComponents.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DssComponentFactory

        public DssComponentFactory()
    • 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 name
        password - The user's password
        openBISUrl - The URL to openBIS
        timeoutInMillis - 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 authentication
        openBISUrl - The URL to openBIS
        timeoutInMillis - network timeout when connecting to remote services