Class HttpSessionWrapper

java.lang.Object
org.eclipse.xtext.web.servlet.HttpSessionWrapper
All Implemented Interfaces:
org.eclipse.xtext.web.server.ISession

public class HttpSessionWrapper extends Object implements org.eclipse.xtext.web.server.ISession
Provides access to the information stored in a HttpSession.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.xtext.web.server.ISession

    org.eclipse.xtext.web.server.ISession.NullImpl
  • Constructor Summary

    Constructors
    Constructor
    Description
    HttpSessionWrapper(jakarta.servlet.http.HttpSession session)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    get(Object key)
     
    <T> T
    get(Object key, org.eclipse.xtext.xbase.lib.Functions.Function0<? extends T> factory)
     
    jakarta.servlet.http.HttpSession
     
    void
    put(Object key, Object value)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HttpSessionWrapper

      public HttpSessionWrapper(jakarta.servlet.http.HttpSession session)
  • Method Details

    • get

      public <T> T get(Object key)
      Specified by:
      get in interface org.eclipse.xtext.web.server.ISession
    • get

      public <T> T get(Object key, org.eclipse.xtext.xbase.lib.Functions.Function0<? extends T> factory)
      Specified by:
      get in interface org.eclipse.xtext.web.server.ISession
    • put

      public void put(Object key, Object value)
      Specified by:
      put in interface org.eclipse.xtext.web.server.ISession
    • remove

      public void remove(Object key)
      Specified by:
      remove in interface org.eclipse.xtext.web.server.ISession
    • getSession

      public jakarta.servlet.http.HttpSession getSession()