tle.framework.component.impl.aamanager.session
Class SessionManagerImpl

java.lang.Object
  extended bytle.framework.component.impl.aamanager.session.SessionManagerImpl
All Implemented Interfaces:
SessionManager

public class SessionManagerImpl
extends java.lang.Object
implements SessionManager

SessionManagerÀÇ ±¸Çö Ŭ·¡½º.

Since:
2.0
Author:
ÃÖ¹ü±Õ

Constructor Summary
SessionManagerImpl()
           
 
Method Summary
 void closeSession(HttpServletRequest request, HttpServletResponse response)
          HttpSessionÀ» Á¾·áÇÑ´Ù.
 User getSessionUser(HttpServletRequest request)
          HttpSession¿¡ ÀúÀåµÈ User °´Ã¼¸¦ ¸®ÅÏÇÑ´Ù.
 void init(ComponentConfig configuration)
          ÄÄÆ÷³ÍÆ®ÀÇ "SessionManagerImpl.sessionAttributeName" ÃʱâÈ­ ÆÄ¶ó¹ÌÅͷκÎÅÍ User Á¤º¸¸¦ ÀúÀåÇÒ sessionÀÇ ¼Ó¼º À̸§À» Àü´Þ¹Þ´Â´Ù.
 void openSession(User user, HttpServletRequest request, HttpServletResponse response)
          HttpSession¿¡ ÀÎÀÚ·Î Àü´Þ¹ÞÀº user¸¦ ¼Ó¼ºÀ¸·Î ÀúÀåÇÑ´Ù.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionManagerImpl

public SessionManagerImpl()
Method Detail

init

public void init(ComponentConfig configuration)
          throws AAManagerException
ÄÄÆ÷³ÍÆ®ÀÇ "SessionManagerImpl.sessionAttributeName" ÃʱâÈ­ ÆÄ¶ó¹ÌÅͷκÎÅÍ User Á¤º¸¸¦ ÀúÀåÇÒ sessionÀÇ ¼Ó¼º À̸§À» Àü´Þ¹Þ´Â´Ù. ÁöÁ¤ÇÏÁö ¾Ê¾ÒÀ» °æ¿ì¿¡´Â ±âº»°ªÀ¸·Î "user"¸¦ »ç¿ëÇÑ´Ù.

Specified by:
init in interface SessionManager
Parameters:
configuration -
Throws:
AAManagerException
See Also:
SessionManager.init(tle.framework.component.ComponentConfig)

openSession

public void openSession(User user,
                        HttpServletRequest request,
                        HttpServletResponse response)
HttpSession¿¡ ÀÎÀÚ·Î Àü´Þ¹ÞÀº user¸¦ ¼Ó¼ºÀ¸·Î ÀúÀåÇÑ´Ù.

Specified by:
openSession in interface SessionManager
Parameters:
user - »ç¿ëÀÚ
request - HTTP ¿äû
response - HTTP ÀÀ´ä
See Also:
tle.framework.component.impl.aamanager.SessionManager#openSession(tle.framework.component.spi.aamanager.User, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

closeSession

public void closeSession(HttpServletRequest request,
                         HttpServletResponse response)
                  throws AAManagerException
HttpSessionÀ» Á¾·áÇÑ´Ù.

Specified by:
closeSession in interface SessionManager
Parameters:
request - HTTP ¿äû
response - HTTP ÀÀ´ä
Throws:
AAManagerException
See Also:
tle.framework.component.impl.aamanager.SessionManager#closeSession(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

getSessionUser

public User getSessionUser(HttpServletRequest request)
                    throws AAManagerException
HttpSession¿¡ ÀúÀåµÈ User °´Ã¼¸¦ ¸®ÅÏÇÑ´Ù. Á¸ÀçÇÏÁö ¾ÊÀ» °æ¿ì nullÀ» ¸®ÅÏÇÑ´Ù.

Specified by:
getSessionUser in interface SessionManager
Parameters:
request - HTTP ¿äû
Returns:
¼¼¼Ç¿¡ ÀúÀåµÈ User. Á¸ÀçÇÏÁö ¾ÊÀ» °æ¿ì nullÀ» ¸®
Throws:
AAManagerException
See Also:
tle.framework.component.impl.aamanager.SessionManager#getSessionUser(javax.servlet.http.HttpServletRequest)