Annotation Interface InterceptWith
@Retention(RUNTIME)
@Target({METHOD,TYPE})
@Repeatable(InterceptWithContainer.class)
public @interface InterceptWith
Русский: Аннотация указывает для класса/метода/HTTP-сервера будет зарегистрирован перехватчик
English: Annotation specifies for the class/method/HTTP server the interceptor will be registered for
Пример / Example:
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 -
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
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({})
-