Package net.hexonet.apiconnector
Class SocketConfig
java.lang.Object
net.hexonet.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 TypeMethodDescriptionMethod to use to encode data to be ready for POST requestMethod to use to get the underlying backend api session idMethod to use to get the configured backend system entity.Setter method for loginSetter method for one time password (otp)setPassword
(String value) Setter method for user passwordsetRemoteAddress
(String value) Setter method for used remote ip addresssetSession
(String value) Setter method for backend api session idsetSystemEntity
(String value) Setter method for backend system entity.Setter method for subuser account name
-
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
-
getSession
Method to use to get the underlying backend api session id- Returns:
- the backend api session id (empty string if not set)
-
getSystemEntity
Method to use to get the configured backend system entity. Use "54cd" for LIVE System and "1234" for OT&E System- Returns:
- the backend system entity
-
setLogin
Setter method for login- Parameters:
value
- user name- Returns:
- current SocketConfig instance to reuse for method chaining
-
setOTP
Setter method for one time password (otp)- Parameters:
value
- 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
-
setRemoteAddress
Setter method for used remote ip address- Parameters:
value
- ip address- Returns:
- current SocketConfig instance to reuse for method chaining
-
setSession
Setter method for backend api session id- Parameters:
value
- session id- Returns:
- current SocketConfig instance to reuse for method chaining
-
setSystemEntity
Setter method for backend system entity. Use "54cd" for LIVE System and "1234" for OT&E System- Parameters:
value
- system entity- Returns:
- current SocketConfig instance to reuse for method chaining
-
setUser
Setter method for subuser account name- Parameters:
value
- subuser account name- Returns:
- current SocketConfig instance to reuse for method chaining
-