Package org.eclipse.xtext.web.servlet
Class HttpSessionWrapper
- java.lang.Object
-
- org.eclipse.xtext.web.servlet.HttpSessionWrapper
-
- All Implemented Interfaces:
org.eclipse.xtext.web.server.ISession
public class HttpSessionWrapper extends java.lang.Object implements org.eclipse.xtext.web.server.ISession
Provides access to the information stored in aHttpSession
.
-
-
Constructor Summary
Constructors Constructor Description HttpSessionWrapper(javax.servlet.http.HttpSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(java.lang.Object key)
<T> T
get(java.lang.Object key, org.eclipse.xtext.xbase.lib.Functions.Function0<? extends T> factory)
javax.servlet.http.HttpSession
getSession()
void
put(java.lang.Object key, java.lang.Object value)
void
remove(java.lang.Object key)
-
-
-
Method Detail
-
get
public <T> T get(java.lang.Object key)
- Specified by:
get
in interfaceorg.eclipse.xtext.web.server.ISession
-
get
public <T> T get(java.lang.Object key, org.eclipse.xtext.xbase.lib.Functions.Function0<? extends T> factory)
- Specified by:
get
in interfaceorg.eclipse.xtext.web.server.ISession
-
put
public void put(java.lang.Object key, java.lang.Object value)
- Specified by:
put
in interfaceorg.eclipse.xtext.web.server.ISession
-
remove
public void remove(java.lang.Object key)
- Specified by:
remove
in interfaceorg.eclipse.xtext.web.server.ISession
-
getSession
public javax.servlet.http.HttpSession getSession()
-
-