Class SocketConfig
java.lang.Object
com.centralnicreseller.apiconnector.SocketConfig
SocketConfig is the base class to configure the socket for API communication
- Since:
- 2.0
- Version:
- %I%, %G%
- Author:
- Kai Schwarz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLogin()
getter method for LoginMethod to use to encode data to be ready for POST requestMethod to use to get the underlying backend api session idSetter method for loginsetPassword
(String value) Setter method for user passwordSetter method for one time password (otp)setSession
(String value) Setter method for backend api session id
-
Constructor Details
-
SocketConfig
public SocketConfig()Class constructor.
-
-
Method Details
-
getPOSTData
Method to use to encode data to be ready for POST request- Returns:
- the ready to use, encoded POST request payload
-
getLogin
getter method for Login- Returns:
- the backend api session id (empty string if not set)
-
setLogin
Setter method for login- Parameters:
value
- user name- Returns:
- current SocketConfig instance to reuse for method chaining
-
setPersistent
Setter method for one time password (otp)- Returns:
- current SocketConfig instance to reuse for method chaining
-
setPassword
Setter method for user password- Parameters:
value
- password- Returns:
- current SocketConfig instance to reuse for method chaining
-
getSession
Method to use to get the underlying backend api session id- Returns:
- the backend api session id (empty string if not set)
-
setSession
Setter method for backend api session id- Parameters:
value
- session id- Returns:
- current SocketConfig instance to reuse for method chaining
-