framework.action
Class ActionRouter

java.lang.Object
  extended by framework.action.ActionRouter

public class ActionRouter
extends java.lang.Object

Ŭ¶óÀÌ¾ðÆ® ¿äûÀ» ¶ó¿ìÆÃ(Æ÷¿öµå ¶Ç´Â ÀçÁöÇâ) ÇØÁִ Ŭ·¡½ºÀÌ´Ù. action.properties¿¡ µî·ÏµÇ¾îÁø Ű °ª¿¡ ¸ÅÇεǾî ÀÖ´Â JSP ÆäÀÌÁö¸¦ ã¾Æ ÆÄ¶ó¹ÌÅÍ·Î ÀԷ¹ÞÀº Ç÷¡±×¸¦ ÅëÇØ Æ÷¿öµùÇÒÁö ÀçÁöÇ× ÇÒÁö¸¦ °áÁ¤ÇÏ°Ô µÈ´Ù.


Constructor Summary
ActionRouter(java.lang.String key)
          ¿äûÀ» JSPÆäÀÌÁö·Î Æ÷¿öµå(Forward) ÇϱâÀ§ÇÑ °´Ã¼°¡ »ý¼ºµÈ´Ù.
ActionRouter(java.lang.String key, boolean isForward)
          ¿äûÀ» JSPÆäÀÌÁö·Î Æ÷¿öµå(Forward) ¶Ç´Â ÀçÁöÇâ(Redirect) ÇϱâÀ§ÇÑ °´Ã¼°¡ »ý¼ºµÈ´Ù.
 
Method Summary
protected  org.apache.commons.logging.Log getLogger()
          ActionRouterÀÇ ·Î°Å°´Ã¼¸¦ ¸®ÅÏÇÑ´Ù.
 void route(javax.servlet.GenericServlet servlet, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          ½ÇÁ¦ ¿äûÀ» ¶ó¿ìÆÃ ÇÏ°Ô µÈ´Ù.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionRouter

public ActionRouter(java.lang.String key)
¿äûÀ» JSPÆäÀÌÁö·Î Æ÷¿öµå(Forward) ÇϱâÀ§ÇÑ °´Ã¼°¡ »ý¼ºµÈ´Ù.

Parameters:
key - action.properties ÆÄÀÏ¿¡ µî·ÏµÈ JSP ÆäÀÌÁöÀÇ Å°

ActionRouter

public ActionRouter(java.lang.String key,
                    boolean isForward)
¿äûÀ» JSPÆäÀÌÁö·Î Æ÷¿öµå(Forward) ¶Ç´Â ÀçÁöÇâ(Redirect) ÇϱâÀ§ÇÑ °´Ã¼°¡ »ý¼ºµÈ´Ù.

Parameters:
key - action.properties ÆÄÀÏ¿¡ µî·ÏµÈ JSP ÆäÀÌÁöÀÇ Å°
isForward - true ÀÌ¸é Æ÷¿öµå, false À̸é ÀçÁöÇâ ÇϱâÀ§ÇÑ Ç÷¡±×
Method Detail

route

public void route(javax.servlet.GenericServlet servlet,
                  javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
½ÇÁ¦ ¿äûÀ» ¶ó¿ìÆÃ ÇÏ°Ô µÈ´Ù.

Parameters:
servlet - °´Ã¼¸¦ È£ÃâÇÑ ¼­ºí¸´
request - Ŭ¶óÀÌ¾ðÆ®¿¡¼­ ¿äûµÈ Request°´Ã¼
response - Ŭ¶óÀÌ¾ðÆ®·Î ÀÀ´äÇÒ Response°´Ã¼
Throws:
javax.servlet.ServletException
java.io.IOException

getLogger

protected org.apache.commons.logging.Log getLogger()
ActionRouterÀÇ ·Î°Å°´Ã¼¸¦ ¸®ÅÏÇÑ´Ù. ¸ðµç ·Î±×´Â ÇØ´ç ·Î°Å¸¦ ÀÌ¿ëÇØ¼­ Ãâ·ÂÇÏ¿©¾ß ÇÑ´Ù.
ex1) ¿¡·¯ Á¤º¸¸¦ Ãâ·ÂÇÒ °æ¿ì => getLogger().error("...¿¡·¯¸Þ½ÃÁö³»¿ë")
ex2) µð¹ö±× Á¤º¸¸¦ Ãâ·ÂÇÒ °æ¿ì => getLogger().debug("...µð¹ö±×¸Þ½ÃÁö³»¿ë")

Returns:
ActionRouterÀÇ ·Î°Å°´Ã¼