Class ClientConfigurationImpl
- java.lang.Object
-
- fr.gouv.vitam.common.client.configuration.ClientConfigurationImpl
-
- All Implemented Interfaces:
ClientConfiguration
- Direct Known Subclasses:
IhmRecetteClientConfiguration
,IngestInternalClientConfiguration
,SecureClientConfigurationImpl
,WorkerClientConfiguration
public class ClientConfigurationImpl extends java.lang.Object implements ClientConfiguration
ClientConfiguration interface's implementation
-
-
Constructor Summary
Constructors Constructor Description ClientConfigurationImpl()
Empty ClientConfiguration constructor for YAMLFactoryClientConfigurationImpl(java.lang.String serverHost, int serverPort)
ClientConfiguration constructor
-
Method Summary
All Methods Instance Methods Concrete 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' attributeClientConfigurationImpl
setServerHost(java.lang.String serverHost)
ClientConfigurationImpl
setServerPort(int serverPort)
-
-
-
Constructor Detail
-
ClientConfigurationImpl
public ClientConfigurationImpl()
Empty ClientConfiguration constructor for YAMLFactory
-
ClientConfigurationImpl
public ClientConfigurationImpl(java.lang.String serverHost, int serverPort)
ClientConfiguration constructor- Parameters:
serverHost
- server IP addressserverPort
- server port- Throws:
java.lang.IllegalArgumentException
- if serverHost is null or empty or serverPort <= 0
-
-
Method Detail
-
getServerHost
public java.lang.String getServerHost()
Description copied from interface:ClientConfiguration
Must return the value of a 'serverHost' attribute- Specified by:
getServerHost
in interfaceClientConfiguration
- Returns:
- the server host value
-
getServerPort
public int getServerPort()
Description copied from interface:ClientConfiguration
Must return the value of a 'serverPort' attribute- Specified by:
getServerPort
in interfaceClientConfiguration
- Returns:
- the server port value
-
setServerHost
public ClientConfigurationImpl setServerHost(java.lang.String serverHost)
- Specified by:
setServerHost
in interfaceClientConfiguration
- Parameters:
serverHost
- the server host- Returns:
- this
-
setServerPort
public ClientConfigurationImpl setServerPort(int serverPort)
- Specified by:
setServerPort
in interfaceClientConfiguration
- Parameters:
serverPort
- the server port- Returns:
- this
-
isSecure
public boolean isSecure()
Description copied from interface:ClientConfiguration
Must return the value of a 'secure' attribute- Specified by:
isSecure
in interfaceClientConfiguration
- Returns:
- secure = false : HTTP, secure = true : HTTPS
-
-