Class SessionResolverImpl

  • All Implemented Interfaces:
    SessionResolver

    public class SessionResolverImpl
    extends java.lang.Object
    implements SessionResolver
    An implementation of session resolver (SessionResolver) based on HTTP request.
    Since:
    5.0.0
    Author:
    tomyeh
    • Constructor Summary

      Constructors 
      Constructor Description
      SessionResolverImpl​(javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest request)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Session getSession​(boolean create)
      Returns the session, or null if no session available and create is false.
      • Methods inherited from class java.lang.Object

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

      • SessionResolverImpl

        public SessionResolverImpl​(javax.servlet.ServletContext ctx,
                                   javax.servlet.http.HttpServletRequest request)
    • Method Detail

      • getSession

        public Session getSession​(boolean create)
        Description copied from interface: SessionResolver
        Returns the session, or null if no session available and create is false.
        Specified by:
        getSession in interface SessionResolver
        Parameters:
        create - whether to create the session if not found. If true, a new session will be create if there is no one available.