Package org.omnifaces.cdi.cookie
Class RequestCookieProducer
- java.lang.Object
-
- org.omnifaces.cdi.cookie.RequestCookieProducer
-
@Dependent public class RequestCookieProducer extends Object
Producer for injecting a Faces request cookie as defined by the
@
Cookie
annotation.- Since:
- 2.1
- Author:
- Bauke Scholtz
-
-
Constructor Summary
Constructors Constructor Description RequestCookieProducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
produce(InjectionPoint injectionPoint)
Returns cookie value associated with cookie name derived from given injection point.
-
-
-
Method Detail
-
produce
@Produces public String produce(InjectionPoint injectionPoint)
Returns cookie value associated with cookie name derived from given injection point.- Parameters:
injectionPoint
- Injection point to derive cookie name from.- Returns:
- Cookie value associated with cookie name derived from given injection point.
-
-