Package httpserver.session
Interface SessionStore<T>
- All Known Subinterfaces:
RandomIdStore<T>,TokenSessionStore<T>
public interface SessionStore<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteSession(HttpServerExchange exchange) booleanexistsSession(HttpServerExchange exchange) getSession(HttpServerExchange exchange) getSession(HttpServerExchange exchange, T defaultValue) default Stringdefault Stringstatic StringgetValueForCookie(HttpServerExchange exchange, String cookieName, String defaultValue) voidsetSession(HttpServerExchange exchange, T session)
-
Method Details
-
getSessionCookieName
-
getSessionCookieConfiguration
-
setSession
- Throws:
IOException
-
existsSession
- Throws:
IOExceptionInvalidInput
-
getSession
- Throws:
IOExceptionInvalidInput
-
getSession
- Throws:
IOExceptionInvalidInput
-
deleteSession
- Throws:
IOException
-
getValueForCookie
static String getValueForCookie(HttpServerExchange exchange, String cookieName, String defaultValue)
-