@Singleton @Requires(property="micronaut.session.http.cookie", notEquals="false") public class CookieHttpSessionStrategy extends Object implements HttpSessionIdStrategy
Session identifiers from cookies.| Constructor and Description | 
|---|
CookieHttpSessionStrategy(HttpSessionConfiguration configuration)
Constructor. 
 | 
CookieHttpSessionStrategy(HttpSessionConfiguration configuration,
                         CookieHttpSessionIdGenerator cookieHttpSessionIdGenerator)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
encodeId(HttpRequest<?> request,
        MutableHttpResponse<?> response,
        Session session)
Encode the given Session into the response. 
 | 
HttpSessionConfiguration | 
getConfiguration()  | 
List<String> | 
resolveIds(HttpRequest<?> message)
Resolve the Session ID from the given HTTP message. 
 | 
public CookieHttpSessionStrategy(HttpSessionConfiguration configuration)
configuration - The HTTP session configurationpublic CookieHttpSessionStrategy(HttpSessionConfiguration configuration, CookieHttpSessionIdGenerator cookieHttpSessionIdGenerator)
configuration - The HTTP session configurationcookieHttpSessionIdGenerator - Cookie HTTP Session Id generatorpublic List<String> resolveIds(HttpRequest<?> message)
HttpSessionIdResolverresolveIds in interface HttpSessionIdResolvermessage - The session IDOptionalpublic void encodeId(HttpRequest<?> request, MutableHttpResponse<?> response, Session session)
HttpSessionIdEncoderencodeId in interface HttpSessionIdEncoderrequest - The requestresponse - The responsesession - The sessionpublic HttpSessionConfiguration getConfiguration()