Interface ClientConfiguration
-
- All Known Subinterfaces:
SecureClientConfiguration
,SecureClientConfiguration
- All Known Implementing Classes:
ClientConfigurationImpl
,ClientConfigurationImpl
,IhmRecetteClientConfiguration
,IngestInternalClientConfiguration
,SecureClientConfigurationImpl
,SecureClientConfigurationImpl
,WorkerClientConfiguration
public interface ClientConfiguration
Defines minimal common configurations for client configuration properties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getServerHost()
Must return the value of a 'serverHost' attributeint
getServerPort()
Must return the value of a 'serverPort' attributeboolean
isSecure()
Must return the value of a 'secure' attributeClientConfiguration
setServerHost(java.lang.String serverHost)
ClientConfiguration
setServerPort(int serverPort)
-
-
-
Method Detail
-
getServerHost
java.lang.String getServerHost()
Must return the value of a 'serverHost' attribute- Returns:
- the server host value
-
getServerPort
int getServerPort()
Must return the value of a 'serverPort' attribute- Returns:
- the server port value
-
setServerPort
ClientConfiguration setServerPort(int serverPort)
- Parameters:
serverPort
- the server port- Returns:
- this
- Throws:
java.lang.IllegalArgumentException
- if serverPort <= 0
-
setServerHost
ClientConfiguration setServerHost(java.lang.String serverHost)
- Parameters:
serverHost
- the server host- Returns:
- this
- Throws:
java.lang.IllegalArgumentException
- if serverHost is null or empty
-
isSecure
boolean isSecure()
Must return the value of a 'secure' attribute- Returns:
- secure = false : HTTP, secure = true : HTTPS
-
-