@Singleton @Requires(property="micronaut.session.http.header", notEquals="false") public class HeadersHttpSessionIdStrategy extends Object implements HttpSessionIdStrategy
Session
ID.Constructor and Description |
---|
HeadersHttpSessionIdStrategy(HttpSessionConfiguration configuration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
encodeId(HttpRequest<?> request,
MutableHttpResponse<?> response,
Session session)
Encode the given Session into the response.
|
String[] |
getHeaderNames() |
List<String> |
resolveIds(HttpRequest<?> message)
Resolve the Session ID from the given HTTP message.
|
public HeadersHttpSessionIdStrategy(HttpSessionConfiguration configuration)
configuration
- The HTTP session configurationpublic String[] getHeaderNames()
public List<String> resolveIds(HttpRequest<?> message)
HttpSessionIdResolver
resolveIds
in interface HttpSessionIdResolver
message
- The session IDOptional
public void encodeId(HttpRequest<?> request, MutableHttpResponse<?> response, Session session)
HttpSessionIdEncoder
encodeId
in interface HttpSessionIdEncoder
request
- The requestresponse
- The responsesession
- The session