public class Sessions extends Object
Modifier and Type | Method and 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 © 2019 JBoss by Red Hat. All rights reserved.