@Requires(value="javax.servlet.Servlet") public class CookieParamProducer extends Object
CookieParam
.
Provides a producer method that retrieves the value of the specified cookie from HttpServletRequest.getCookies()
array and makes it available as a dependent-scoped bean of type String qualified @CookieParam. The name of the cookie to
lookup is either the value of the @CookieParam annotation or, if the annotation value is empty, the name of the
injection point (e.g., the field name).
If the cookie is not present, and the injection point is annotated with @DefaultValue, the value of the
@DefaultValue annotation is returned instead. If @DefaultValue is not present, null
is returned.
CookieParam
,
DefaultValue
Constructor and Description |
---|
CookieParamProducer() |
Modifier and Type | Method and Description |
---|---|
protected Object |
getTypedParamValue(javax.enterprise.inject.spi.InjectionPoint ip,
ServletExtension ext) |
@Produces @TypedParamValue protected Object getTypedParamValue(javax.enterprise.inject.spi.InjectionPoint ip, ServletExtension ext)
Copyright © 2008-2013 Seam Framework. All Rights Reserved.