이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 8. @CookieParam
The
@CookieParam
annotation allows you to inject the value of a cookie, or an object representation of an HTTP request cookie, into your method invocation.
GET /books?num=5
GET /books?num=5
As with
@PathParam
, the type of parameter can be a primitive, a String, or a class with a String constructor or static valueOf()
method. You can also get an object representation of the cookie via the javax.ws.rs.core.Cookie
class.