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
Constructors -
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:RequestArgumentBinderCreate a specific binder.- Specified by:
createSpecificin interfaceArgumentBinder<Cookie,HttpRequest<?>> - Specified by:
createSpecificin 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:ArgumentBinderBind the given argument from the given source.- Specified by:
bindin interfaceArgumentBinder<Cookie,HttpRequest<?>> - Parameters:
context- TheArgumentConversionContextsource- The source- Returns:
- An
Optionalof the value. If no binding was possibleOptional.empty()
-