forked from fanruan/finekit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
577 B
23 lines
577 B
6 years ago
|
package com.fanruan.api.session;
|
||
|
|
||
|
import com.fr.stable.web.SessionProvider;
|
||
|
import com.fr.web.core.SessionPoolManager;
|
||
|
import org.jetbrains.annotations.NotNull;
|
||
|
|
||
|
/**
|
||
|
* @author richie
|
||
|
* @version 10.0
|
||
|
* Created by richie on 2019-08-09
|
||
|
*/
|
||
|
public class SessionFactory {
|
||
|
|
||
|
/**
|
||
|
* 根据sessionID信息返回会话对象
|
||
|
* @param sessionID 会话唯一标识符
|
||
|
* @return 会话对象
|
||
|
*/
|
||
|
public static SessionProvider getSession(@NotNull String sessionID) {
|
||
|
return SessionPoolManager.getSessionIDInfor(sessionID, SessionProvider.class);
|
||
|
}
|
||
|
}
|