Package io.micronaut.http.bind.binders
Class CookieObjectArgumentBinder
java.lang.Object
io.micronaut.http.bind.binders.CookieObjectArgumentBinder
- All Implemented Interfaces:
ArgumentBinder<Cookie,
,HttpRequest<?>> RequestArgumentBinder<Cookie>
@Internal
public final class CookieObjectArgumentBinder
extends Object
implements RequestArgumentBinder<Cookie>
Simple
Cookie
binder.- Since:
- 4.8
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
ArgumentBinder.BindingResult<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbind
(ArgumentConversionContext<Cookie> context, HttpRequest<?> source) Bind the given argument from the given source.createSpecific
(Argument<Cookie> argument) Create a specific binder.
-
Constructor Details
-
CookieObjectArgumentBinder
public CookieObjectArgumentBinder()
-
-
Method Details
-
createSpecific
Description copied from interface:RequestArgumentBinder
Create a specific binder.- Specified by:
createSpecific
in interfaceArgumentBinder<Cookie,
HttpRequest<?>> - Specified by:
createSpecific
in interfaceRequestArgumentBinder<Cookie>
- Parameters:
argument
- The bound argument- Returns:
- The specific binder
-
bind
public ArgumentBinder.BindingResult<Cookie> bind(ArgumentConversionContext<Cookie> context, HttpRequest<?> source) Description copied from interface:ArgumentBinder
Bind the given argument from the given source.- Specified by:
bind
in interfaceArgumentBinder<Cookie,
HttpRequest<?>> - Parameters:
context
- TheArgumentConversionContext
source
- The source- Returns:
- An
Optional
of the value. If no binding was possibleOptional.empty()
-