Annotation Interface Cookie
Русский: Аннотация указывает аргумент метода должен быть интерпретирован как Cookie параметр запроса/ответа
English: Annotation specifies the method argument should be interpreted as a Cookie request/response parameter
Пример / Example:
English: Annotation specifies the method argument should be interpreted as a Cookie request/response parameter
Пример / Example:
@HttpClient("my.config")
public interface MyHttpClient {
@HttpRoute(method = "GET", path = "/username")
String getUserCode(@Cookie("name") String value);
}
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String value- Returns:
- Русский: Описывает имя Cookie параметра
English: Describes the name of the Cookie parameter
- Default:
- ""
-