org.codelabor.system.login.web.struts.actions
Class LoginAction
java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
org.codelabor.system.web.struts.actions.BaseDispatchAction
org.codelabor.system.login.web.struts.actions.LoginAction
- Direct Known Subclasses:
- LoginAction
public abstract class LoginAction
- extends org.codelabor.system.web.struts.actions.BaseDispatchAction
로그인 액션
- Author:
- Shin Sangjae
Fields inherited from class org.codelabor.system.web.struts.actions.BaseDispatchAction |
logger |
Fields inherited from class org.apache.struts.actions.DispatchAction |
clazz, log, methods, types |
Fields inherited from class org.apache.struts.actions.BaseAction |
messages |
Fields inherited from class org.apache.struts.action.Action |
servlet |
Method Summary |
protected abstract boolean |
isAuthenticated(String userId,
String password)
인증 여부를 확인한다. |
org.apache.struts.action.ActionForward |
login(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
로그인한다. |
org.apache.struts.action.ActionForward |
logout(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
로그아웃한다. |
org.apache.struts.action.ActionForward |
prepare(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
로그인 페이지로 포워딩한다. |
Methods inherited from class org.apache.struts.actions.DispatchAction |
cancelled, dispatchMethod, execute, getMethod, getMethodName, getParameter, unspecified |
Methods inherited from class org.apache.struts.action.Action |
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoginAction
public LoginAction()
login
public org.apache.struts.action.ActionForward login(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
- 로그인한다.
- Parameters:
mapping
- 매핑form
- 액션 폼request
- 요청response
- 응답
- Returns:
- 액션 포워드
- Throws:
Exception
- 예외
logout
public org.apache.struts.action.ActionForward logout(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
- 로그아웃한다.
- Parameters:
mapping
- 매핑form
- 액션 폼request
- 요청response
- 응답
- Returns:
- 액션 포워드
- Throws:
Exception
- 예외
prepare
public org.apache.struts.action.ActionForward prepare(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
- 로그인 페이지로 포워딩한다.
- Parameters:
mapping
- 매핑form
- 폼request
- 요청response
- 응답
- Returns:
- 액션 포워드
- Throws:
Exception
- 예외
isAuthenticated
protected abstract boolean isAuthenticated(String userId,
String password)
- 인증 여부를 확인한다.
- Parameters:
userId
- 사용자 Idpassword
- 패스워드
- Returns:
- 인증 여부
Copyright © 2010 CODELABOR. All Rights Reserved.