Package nablarch.fw.web.servlet
Class NablarchHttpServletRequestWrapper.HttpSessionWrapper
java.lang.Object
nablarch.fw.web.servlet.NablarchHttpServletRequestWrapper.HttpSessionWrapper
- All Implemented Interfaces:
jakarta.servlet.http.HttpSession
- Enclosing class:
- NablarchHttpServletRequestWrapper
public static class NablarchHttpServletRequestWrapper.HttpSessionWrapper
extends Object
implements jakarta.servlet.http.HttpSession
サーブレットセッションのラッパー
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) longjakarta.servlet.http.HttpSession委譲対象のセッションオブジェクトを取得する。getId()longintgetScope()セッションスコープへの参照を返す。jakarta.servlet.ServletContextString[]voidbooleanisNew()voidvoidremoveAttribute(String name) voidremoveValue(String name) voidsetAttribute(String name, Object value) voidsetMaxInactiveInterval(int interval) セッションスコープを設定する。
-
Constructor Details
-
HttpSessionWrapper
public HttpSessionWrapper(jakarta.servlet.http.HttpSession delegate) コンストラクター- Parameters:
delegate- 委譲対象のセッションオブジェクト
-
-
Method Details
-
getScope
セッションスコープへの参照を返す。- Returns:
- セッションスコープへの参照
-
setScope
セッションスコープを設定する。- Parameters:
scope- セッションスコープ- Returns:
- このオブジェクト自体
-
getAttribute
- Specified by:
getAttributein interfacejakarta.servlet.http.HttpSession
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejakarta.servlet.http.HttpSession
-
setAttribute
- Specified by:
setAttributein interfacejakarta.servlet.http.HttpSession
-
removeAttribute
- Specified by:
removeAttributein interfacejakarta.servlet.http.HttpSession
-
getValue
-
getValueNames
-
putValue
-
removeValue
-
getCreationTime
public long getCreationTime()- Specified by:
getCreationTimein interfacejakarta.servlet.http.HttpSession
-
getId
- Specified by:
getIdin interfacejakarta.servlet.http.HttpSession
-
getLastAccessedTime
public long getLastAccessedTime()- Specified by:
getLastAccessedTimein interfacejakarta.servlet.http.HttpSession
-
getMaxInactiveInterval
public int getMaxInactiveInterval()- Specified by:
getMaxInactiveIntervalin interfacejakarta.servlet.http.HttpSession
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()- Specified by:
getServletContextin interfacejakarta.servlet.http.HttpSession
-
invalidate
public void invalidate()- Specified by:
invalidatein interfacejakarta.servlet.http.HttpSession
-
isNew
public boolean isNew()- Specified by:
isNewin interfacejakarta.servlet.http.HttpSession
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval) - Specified by:
setMaxInactiveIntervalin interfacejakarta.servlet.http.HttpSession
-
getDelegate
public jakarta.servlet.http.HttpSession getDelegate()委譲対象のセッションオブジェクトを取得する。- Returns:
- 委譲対象のセッションオブジェクト
-