|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.Action com.poscoict.glueframework.web.control.struts.GlueAbstractAction
public abstract class GlueAbstractAction
GlueSimpleActionÀ» »ç¿ëÇÏÁö ¾Ê°í GlueSimpleAction¿¡ ±â´ÉÀ» È®ÀåÇϱ⠿øÇÏ´Â °æ¿ì »ç¿ë. ¸ðµç »ç¿ëÀÚ ActionÀº ÀÌ Class¸¦ »ó¼Ó ¹Þ¾Æ¾ß ÇÏ¸ç ¹Ýµå½Ã beforeExecute()¿Í afterExecute()¸¦ ±¸ÇöÇÏ¿©¾ß ÇÑ´Ù. GlueAbstractAction È®Àå Class¿¡¼´Â beforeExecute() --> execute() --> afterExecute() ¼øÀ¸·Î È£ÃâÇÑ´Ù. µû¶ó¼ execute()´Â Overriding ÇÒ ¼ö ¾ø´Ù. GlueContext´Â beforeExecute()¿¡¼´Â »ç¿ëÇÒ ¼ö ¾ø´Ù. ±× ÀÌÀ¯´Â GlueContext´Â execute()¿¡¼ »ý¼ºÇϱ⠶§¹®ÀÌ´Ù. beforeExecute()ÀÇ ½ÇÇà °á°ú´Â request¿¡ ÀúÀåÇÏ¿©¾ß ÇÑ´Ù. ÇØ´ç ³»¿ëÀº GlueContext¿¡ ÀÚµ¿À¸·Î ÀúÀåµÇ°í ÀÌÈÄÀÇ Method¿¡¼ GlueContext¸¦ ÅëÇØ Data¸¦ Á¢±ÙÇÒ ¼ö ÀÖ´Ù. afterExecute()¿¡¼ GlueContextÀÇ Data°¡ ÇÊ¿äÇÑ °æ¿ì ´ÙÀ½°ú °°ÀÌ »ç¿ëÇÒ ¼ö ÀÖ´Ù.
GlueContext ctx = (GlueContext) request.getAttribute( GlueWebConstants.CONTEXT );
Field Summary | |
---|---|
protected org.slf4j.Logger |
logger
logger |
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
GlueAbstractAction()
|
Method Summary | |
---|---|
abstract org.apache.struts.action.ActionForward |
afterExecute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
ÀÌ Method¸¦ Override ÇÏ¿© GlueBizController¸¦ È£ÃâÇÑ ÈÄ¿¡ ¼öÇà ÇÏ´Â ³»¿ëÀ» ±¸ÇöÇÑ´Ù. |
abstract GlueWebContext |
beforeExecute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
ÀÌ Method¸¦ Override ÇÏ¿© GlueBizController¸¦ È£ÃâÇϱâ Àü¿¡ ¼öÇà ÇÏ´Â ³»¿ëÀ» ±¸ÇöÇÑ´Ù. |
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Internal Use Only. |
protected GlueMultipartRequest |
processUploadFile(HttpServletRequest request)
Deprecated. |
Methods inherited from class org.apache.struts.action.Action |
---|
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, 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 |
Field Detail |
---|
protected org.slf4j.Logger logger
Constructor Detail |
---|
public GlueAbstractAction()
Method Detail |
---|
protected GlueMultipartRequest processUploadFile(HttpServletRequest request) throws Exception
Exception
public final org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
execute
in class org.apache.struts.action.Action
mapping
- ActionMappingform
- ActionFormrequest
- HttpServletRequestresponse
- HttpServletResponse
IOException
ServletException
public abstract GlueWebContext beforeExecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
mapping
- ActionMappingform
- ActionFormrequest
- HttpServletRequestresponse
- HttpServletResponsepublic abstract org.apache.struts.action.ActionForward afterExecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
GlueContext ctx = (GlueContext) request.getAttribute( GlueWebConstants.CONTEXT ); ctx.put( key, value );
mapping
- ActionMappingform
- ActionFormrequest
- HttpServletRequestresponse
- HttpServletResponse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |