Annotation Interface HttpClient


@Retention(RUNTIME) @Target(TYPE) public @interface HttpClient
Русский: Аннотация указывает что интерфейс является HTTP клиентом и отвечает за взаимодействие с внешним сервисом.
English: The annotation indicates that the interface is an HTTP client and is responsible for interacting with an external service.

Пример / Example:
 
 @HttpClient("my.config")
 public interface MyHttpclient {

 }
 
 
  • Element Details

    • configPath

      String configPath
      Returns:
      Русский: Указывает путь конфигурации HTTP клиента
      English: Specifies the configuration path of the HTTP client
      Default:
      ""
    • telemetryTag

      Class<?>[] telemetryTag
      Returns:
      Русский: Теги Tag для собственной телеметрии
      English: Tags Tag for your own telemetry
      Default:
      {}
    • httpClientTag

      Class<?>[] httpClientTag
      Default:
      {}