Package com.aspectran.undertow.adapter
Class TowSessionAdapter
java.lang.Object
com.aspectran.core.adapter.AbstractSessionAdapter
com.aspectran.undertow.adapter.TowSessionAdapter
- All Implemented Interfaces:
com.aspectran.core.adapter.SessionAdapter
public class TowSessionAdapter
extends com.aspectran.core.adapter.AbstractSessionAdapter
Adapt
HttpServerExchange to Core SessionAdapter.- Since:
- 2011. 3. 13.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T<T> TgetAttribute(String name) longgetId()longintio.undertow.server.session.SessiongetSession(boolean create) voidbooleanisNew()booleanisValid()voidremoveAttribute(String name) voidsetAttribute(String name, Object value) voidsetMaxInactiveInterval(int interval) Methods inherited from class com.aspectran.core.adapter.AbstractSessionAdapter
createSessionScope, getSessionScope, toString
-
Constructor Details
-
TowSessionAdapter
public TowSessionAdapter(io.undertow.server.HttpServerExchange exchange)
-
-
Method Details
-
getAdaptee
public <T> T getAdaptee()- Specified by:
getAdapteein interfacecom.aspectran.core.adapter.SessionAdapter- Overrides:
getAdapteein classcom.aspectran.core.adapter.AbstractSessionAdapter
-
getId
-
getCreationTime
public long getCreationTime() -
getLastAccessedTime
public long getLastAccessedTime() -
getMaxInactiveInterval
public int getMaxInactiveInterval() -
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval) -
getAttributeNames
-
getAttribute
-
setAttribute
-
removeAttribute
-
invalidate
public void invalidate() -
isValid
public boolean isValid() -
isNew
public boolean isNew() -
getSession
public io.undertow.server.session.Session getSession(boolean create)
-