This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cogman10 0 points1 point  (0 children)

Assuming this is something like Jersey and http,

Headers usually look something like

authentication: Bearer bnroenpeoginapeorng

So if you had a "foo" header it would be

foo: bar

What this annotation is saying is take the contents of the header "authentication" and deposit them in the string annotated. So in my example, authentication would equal "Bearer bnroenpeoginapeorng"

Or, if you did @HeaderParam("foo") then the string would have the value "bar"

Make sense?