public class Sessions
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static Session |
getOrCreateSession(HttpServerExchange exchange) |
Gets the active session, creating a new one if one does not exist
|
static Session |
getSession(HttpServerExchange exchange) |
Gets the active session, returning null if one is not present.
|
public static Session getSession(HttpServerExchange exchange)
exchange
- The exchangepublic static Session getOrCreateSession(HttpServerExchange exchange)
exchange
- The exchangeCopyright © 2018. All rights reserved.