Class 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 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​(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)  
      • Methods inherited from class java.lang.Object

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

      • HttpSessionWrapper

        public HttpSessionWrapper​(javax.servlet.http.HttpSession session)
    • Method Detail

      • get

        public <T> T get​(java.lang.Object key)
        Specified by:
        get in interface org.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 interface org.eclipse.xtext.web.server.ISession
      • put

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

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

        public javax.servlet.http.HttpSession getSession()