com.arsdigita.acs
Class ACSSessionFactory

java.lang.Object
  |
  +--com.arsdigita.acs.ACSSessionFactory

public class ACSSessionFactory
extends java.lang.Object

factory class for ACSSession.


Field Summary
static java.lang.String cvsId
           
 
Constructor Summary
ACSSessionFactory()
           
 
Method Summary
static ACSSession getSession(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          Returns the ACSSession object for the current user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cvsId

public static final java.lang.String cvsId
Constructor Detail

ACSSessionFactory

public ACSSessionFactory()
Method Detail

getSession

public static ACSSession getSession(javax.servlet.http.HttpServletRequest req,
                                    javax.servlet.http.HttpServletResponse resp)
                             throws java.sql.SQLException,
                                    com.arsdigita.acs.InvalidSessionException
Returns the ACSSession object for the current user. Since an ACSSession is pretty much the same for every request a user makes, we can cache it in the HttpSession. This way we won't have to keep reinstantiating new and identical session objects.
Throws:
com.arsdigita.acs.InvalidSessionException - thrown when invalid secure cookies forces redirection for registration
java.sql.SQLException - thrown on database error