Annotation Interface InterceptWith


Русский: Аннотация указывает для класса/метода/HTTP-сервера будет зарегистрирован перехватчик
English: Annotation specifies for the class/method/HTTP server the interceptor will be registered for

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

     @InterceptWith(HttpClientInterceptor.class)
     @HttpRoute(method = "GET", path = "/username")
     String getUserCode();
 }
 
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
     
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    ru.tinkoff.kora.common.Tag
     
  • Element Details

    • value

      Class<?> value
      Returns:
      Русский: Указывает реализацию HTTP перехватчика
      English: Specifies the implementation of the HTTP interceptor
    • tag

      ru.tinkoff.kora.common.Tag tag
      Default:
      @ru.tinkoff.kora.common.Tag({})