@Singleton @Requires(property="micronaut.session.http.header", notEquals="false") public class HeadersHttpSessionIdStrategy extends java.lang.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.
|
java.lang.String[] |
getHeaderNames() |
java.util.List<java.lang.String> |
resolveIds(HttpRequest<?> message)
Resolve the Session ID from the given HTTP message.
|
public HeadersHttpSessionIdStrategy(HttpSessionConfiguration configuration)
configuration
- The HTTP session configurationpublic java.lang.String[] getHeaderNames()
public java.util.List<java.lang.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