Skip to content

Commit

Permalink
Doc @cookie replaced by @CookieValue
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Feb 17, 2018
1 parent ac4a927 commit 8585aa6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/docs/guide/httpServer/binding.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ The following table summarizes the annotations, their purpose and provides an ex
|Allows to specify the parameter the body of the request should bind to
|`@Body String body`

|link:{api}/org/particleframework/http/annotation/Cookie.html[@Cookie]
|link:{api}/org/particleframework/http/annotation/CookieValue.html[@CookieValue]
|Binds a parameter from a Cookie
|`@Cookie String myCookie`
|`@CookieValue String myCookie`

|link:{api}/org/particleframework/http/annotation/Header.html[@Header]
|Binds a parameter from an HTTP header
Expand All @@ -34,11 +34,11 @@ When a value is not specified to any binding annotation then the parameter name

[source,groovy]
----
String hello(@Cookie("myCookie") String myCookie) {
String hello(@CookieValue("myCookie") String myCookie) {
...
}
String hello(@Cookie String myCookie) {
String hello(@CookieValue String myCookie) {
...
}
----
Expand Down

0 comments on commit 8585aa6

Please sign in to comment.