Class NetConfig
java.lang.Object
cz.zcu.fav.kiv.mjakubas.saf.config.configs.NetConfig
Represents a net config of application.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets net config connectionAuthenticator
.getPort()
static NetConfig
loadNetConfig
(@NotNull Properties netProperty) Creates new instance ofNetConfig
from net config '.properties' file.
-
Field Details
-
address
-
port
-
username
-
password
-
-
Method Details
-
loadNetConfig
Creates new instance ofNetConfig
from net config '.properties' file.- Parameters:
netProperty
- net config properties file- Returns:
- new
NetConfig
- Throws:
IOException
- if any properties expected value is missing
-
getAuthenticator
Gets net config connectionAuthenticator
.- Returns:
- net config connection
Authenticator
-
getAddress
-
getPort
-
getUsername
-
getPassword
-