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 Details

    • RequestCookieProducer

      public RequestCookieProducer()
  • Method Details

    • 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.