Package io.micronaut.session.binder
Class SessionArgumentBinder
java.lang.Object
io.micronaut.session.binder.SessionArgumentBinder
- All Implemented Interfaces:
io.micronaut.core.bind.ArgumentBinder<Session,
,io.micronaut.http.HttpRequest<?>> io.micronaut.core.bind.TypeArgumentBinder<Session,
,io.micronaut.http.HttpRequest<?>> io.micronaut.http.bind.binders.RequestArgumentBinder<Session>
,io.micronaut.http.bind.binders.TypedRequestArgumentBinder<Session>
@Singleton
@Requires(classes=io.micronaut.http.server.HttpServerConfiguration.class)
public class SessionArgumentBinder
extends Object
implements io.micronaut.http.bind.binders.TypedRequestArgumentBinder<Session>
Binds an argument of type
Session
for controllers.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
io.micronaut.core.bind.ArgumentBinder.BindingResult<T extends Object>
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.bind.binders.TypedRequestArgumentBinder
matches, superTypes
-
Constructor Details
-
SessionArgumentBinder
Constructor.- Parameters:
sessionStore
- The session store
-
-
Method Details
-
argumentType
- Specified by:
argumentType
in interfaceio.micronaut.core.bind.TypeArgumentBinder<Session,
io.micronaut.http.HttpRequest<?>>
-
bind
public io.micronaut.core.bind.ArgumentBinder.BindingResult<Session> bind(io.micronaut.core.convert.ArgumentConversionContext<Session> context, io.micronaut.http.HttpRequest<?> source) - Specified by:
bind
in interfaceio.micronaut.core.bind.ArgumentBinder<Session,
io.micronaut.http.HttpRequest<?>>
-