Package fr.gouv.vitam.common.client.configuration

# 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 Type
  Method
  Description
  `String`
  `getServerHost()`
  Must return the value of a 'serverHost' attribute
  `int`
  `getServerPort()`
  Must return the value of a 'serverPort' attribute
  `boolean`
  `isSecure()`
  Must return the value of a 'secure' attribute
  `ClientConfiguration`
  `setServerHost(String serverHost)`
  `ClientConfiguration`
  `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

    ClientConfiguration setServerPort(int serverPort)
    Parameters:
      `serverPort` - the server port
    Returns:
      this
    Throws:
      `IllegalArgumentException` - if serverPort <= 0

  - ### setServerHost

    ClientConfiguration setServerHost(String serverHost)
    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