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
Modifier and TypeMethodDescriptionMust return the value of a 'serverHost' attributeint
Must return the value of a 'serverPort' attributeboolean
isSecure()
Must return the value of a 'secure' attributesetServerHost
(String serverHost) setServerPort
(int serverPort)
-
Method Details
-
getServerHost
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
- Parameters:
serverPort
- the server port- Returns:
- this
- Throws:
IllegalArgumentException
- if serverPort <= 0
-
setServerHost
- Parameters:
serverHost
- the server host- Returns:
- this
- Throws:
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
-