jexpresso-session

A JExpresso middleware providing user sessions.

Лицензия

Лицензия

Группа

Группа

de.yourinspiration
Идентификатор

Идентификатор

jexpresso-session
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

jexpresso-session
A JExpresso middleware providing user sessions.
Ссылка на сайт

Ссылка на сайт

https://github.com/Yourinspiration/jexpresso-session
Организация-разработчик

Организация-разработчик

Yourinspiration
Система контроля версий

Система контроля версий

https://github.com/Yourinspiration/jexpresso-session.git

Скачать jexpresso-session

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/de.yourinspiration/jexpresso-session/ -->
<dependency>
    <groupId>de.yourinspiration</groupId>
    <artifactId>jexpresso-session</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/de.yourinspiration/jexpresso-session/
implementation 'de.yourinspiration:jexpresso-session:1.0.1'
// https://jarcasting.com/artifacts/de.yourinspiration/jexpresso-session/
implementation ("de.yourinspiration:jexpresso-session:1.0.1")
'de.yourinspiration:jexpresso-session:jar:1.0.1'
<dependency org="de.yourinspiration" name="jexpresso-session" rev="1.0.1">
  <artifact name="jexpresso-session" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.yourinspiration', module='jexpresso-session', version='1.0.1')
)
libraryDependencies += "de.yourinspiration" % "jexpresso-session" % "1.0.1"
[de.yourinspiration/jexpresso-session "1.0.1"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
de.yourinspiration : jexpresso jar 1.1.1
org.mongodb : mongo-java-driver jar 2.12.3

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11
org.mockito : mockito-all jar 1.9.5

Модули Проекта

Данный проект не имеет модулей.

JExpresso Session Support Middleware

Middleware for JExpresso providing session support.

Maven

Latest stable release:

<dependency>
  <groupId>de.yourinspiration</groupId>
  <artifactId>jexpresso-session</artifactId>
  <version>1.0.1</version>
</dependency>

Usage

General

The session data will be stored as a request attribute. To retrieve the current session call the attribute() method of the request object, or use the static helper method of the JExpressoSession class.

Session session = (Session) req.attribute(JExpressoSession.SESSION_ATTR);
Session session = JExpressoSession.session(req);

The Session interface provides methods to get and set data from/to the session, and a method to invalidate the current session.

In Memory Store

final JExpresso app = new JExpresso();
app.use(new JExpressoSession(new InMemoryStore()));

Версии библиотеки

Версия
1.0.1
1.0.0