org.hippoecm.hst.servlet.utils
Class SessionUtils

java.lang.Object
  extended by org.hippoecm.hst.servlet.utils.SessionUtils

public final class SessionUtils
extends Object

Utility class for getting and returning sessions from the hst session pool.


Method Summary
static javax.jcr.Session getBinariesSession(javax.servlet.http.HttpServletRequest request)
           
static javax.jcr.Session getPooledSession(javax.servlet.http.HttpServletRequest request, String poolName)
           
static void releaseSession(javax.servlet.http.HttpServletRequest request, javax.jcr.Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBinariesSession

public static javax.jcr.Session getBinariesSession(javax.servlet.http.HttpServletRequest request)
                                            throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getPooledSession

public static javax.jcr.Session getPooledSession(javax.servlet.http.HttpServletRequest request,
                                                 String poolName)
                                          throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

releaseSession

public static void releaseSession(javax.servlet.http.HttpServletRequest request,
                                  javax.jcr.Session session)


Copyright © 2008-2012 Hippo. All Rights Reserved.