Package sk.ipesoft.d2000.d2japi
Class SessionParametersBuilder
- java.lang.Object
-
- sk.ipesoft.d2000.d2japi.SessionParametersBuilder
-
public class SessionParametersBuilder extends java.lang.Object
Builder class for instances of- See Also:
D2SessionParameters
-
-
Constructor Summary
Constructors Constructor Description SessionParametersBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description D2SessionParameters
build()
Create initialized instance of session parameters from previously set properties.static D2SessionParameters
create(java.lang.String login, java.lang.String password)
Utility method to create parameters for dynamic session with login and password.static D2SessionParameters
create(java.lang.String login, java.lang.String password, java.lang.String sessionName)
Utility method to create parameters for dynamic session with login, password and sessionName.static D2SessionParameters
create(java.lang.String login, java.lang.String password, java.lang.String sessionName, boolean staticProcess)
Utility method to create parameters with login, password, sessionName and choice for static session.SessionParametersBuilder
hostName(java.lang.String hostName)
Set new value ofhostName
and get reference to self.SessionParametersBuilder
password(java.lang.String password)
Set new value ofpassword
and get reference to self.SessionParametersBuilder
sessionName(java.lang.String sessionName)
Set new value ofsessionName
and get reference to self.SessionParametersBuilder
staticProcess(boolean staticProcess)
Set new value ofstaticProcess
and get reference to self.SessionParametersBuilder
userName(java.lang.String userName)
Set new value ofuserName
and get reference to self.
-
-
-
Method Detail
-
create
public static D2SessionParameters create(java.lang.String login, java.lang.String password)
Utility method to create parameters for dynamic session with login and password.- Parameters:
login
-password
-- Returns:
-
create
public static D2SessionParameters create(java.lang.String login, java.lang.String password, java.lang.String sessionName)
Utility method to create parameters for dynamic session with login, password and sessionName.- Parameters:
login
-password
-sessionName
-- Returns:
-
create
public static D2SessionParameters create(java.lang.String login, java.lang.String password, java.lang.String sessionName, boolean staticProcess)
Utility method to create parameters with login, password, sessionName and choice for static session.- Parameters:
login
-password
-sessionName
-- Returns:
-
build
public D2SessionParameters build()
Create initialized instance of session parameters from previously set properties.- Returns:
- initialized version of session parameters
-
hostName
public SessionParametersBuilder hostName(java.lang.String hostName)
Set new value ofhostName
and get reference to self.- Parameters:
hostName
- new value ofhostName
- Returns:
- reference to self
-
password
public SessionParametersBuilder password(java.lang.String password)
Set new value ofpassword
and get reference to self.- Parameters:
password
- new value ofpassword
- Returns:
- reference to self
-
sessionName
public SessionParametersBuilder sessionName(java.lang.String sessionName)
Set new value ofsessionName
and get reference to self.- Parameters:
sessionName
- new value ofsessionName
- Returns:
- reference to self
-
staticProcess
public SessionParametersBuilder staticProcess(boolean staticProcess)
Set new value ofstaticProcess
and get reference to self.- Parameters:
staticProcess
- new value ofstaticProcess
- Returns:
- reference to self
-
userName
public SessionParametersBuilder userName(java.lang.String userName)
Set new value ofuserName
and get reference to self.- Parameters:
userName
- new value ofuserName
- Returns:
- reference to self
-
-