パッケージ org.wcardinal.io
クラス Session
java.lang.Object
org.wcardinal.io.Session
- すべての実装されたインタフェース:
Serializable,Runnable
Central class of sessions.
- 関連項目:
-
コンストラクタの概要
コンストラクタ修飾子コンストラクタ説明protectedSession(String sessionId, org.springframework.context.ApplicationContext context, WCardinalConfiguration configuration, Scheduler scheduler) -
メソッドの概要
修飾子とタイプメソッド説明voidcleanup()Finds destroyed sub sessions and removes them from this session.createSubSession(ControllerFactory factory, String remoteAddress, Principal principal, Map<String, String[]> parameters, List<Locale> locales, jakarta.servlet.http.HttpServletRequest request) voiddestroy()Destroys this session.static Sessionget(jakarta.servlet.http.HttpSession httpSession) static Sessionget(jakarta.servlet.http.HttpSession httpSession, org.springframework.context.ApplicationContext context, WCardinalConfiguration configuration, Scheduler scheduler, boolean create) static Sessionget(org.springframework.web.socket.WebSocketSession webSocketSession) getId()getSubSession(String subSessionId) getSubSession(ControllerFactory factory, String subSessionId, String remoteAddress, boolean create, Principal principal, Map<String, String[]> parameters, List<Locale> locales, jakarta.servlet.http.HttpServletRequest request) booleanReturns true if this session is destroyed.static SessionRemoves the session associated with the specified HTTP session ID.voidrun()static voidtoString()
-
コンストラクタの詳細
-
Session
protected Session(String sessionId, org.springframework.context.ApplicationContext context, WCardinalConfiguration configuration, Scheduler scheduler)
-
-
メソッドの詳細
-
toString
-
createSubSession
public SessionResult createSubSession(ControllerFactory factory, String remoteAddress, Principal principal, Map<String, String[]> parameters, List<Locale> locales, jakarta.servlet.http.HttpServletRequest request) -
getSubSession
-
getSubSessions
-
getId
-
getSubSession
public SessionResult getSubSession(ControllerFactory factory, String subSessionId, String remoteAddress, boolean create, Principal principal, Map<String, String[]> parameters, List<Locale> locales, jakarta.servlet.http.HttpServletRequest request) -
get
-
set
-
get
public static Session get(jakarta.servlet.http.HttpSession httpSession, org.springframework.context.ApplicationContext context, WCardinalConfiguration configuration, Scheduler scheduler, boolean create) -
get
-
remove
Removes the session associated with the specified HTTP session ID.- パラメータ:
httpSessionId- HTTP session ID of HTTP session associated with the session to be removed- 戻り値:
- removed session or null if not exists
-
destroy
Destroys this session. -
cleanup
Finds destroyed sub sessions and removes them from this session. -
isDestroyed
Returns true if this session is destroyed.- 戻り値:
- true if destroyed
-
run
public void run()
-