|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectframework.action.Action
public abstract class Action
ºñÁö´Ï½º ·ÎÁ÷À» ó¸®Çϴ Ŭ·¡½º°¡ »ó¼Ó¹Þ¾Æ¾ß ÇÒ Ãß»óŬ·¡½ºÀÌ´Ù. ºäÆäÀÌÁö(jsp ÆäÀÌÁö)°¡ ½ÇÇàµÇ±â Àü¿¡ Ŭ¶óÀÌ¾ðÆ®¿¡¼ ¼¹ö·Î Àü¼ÛµÈ µ¥ÀÌÅ͸¦ Æí¸®ÇÏ°Ô ¾÷¹«·ÎÁ÷¿¡ ¹Ý¿µÇϱâ À§ÇÑ Àüó¸®(Pre-processing)¸ðµâÀÌ´Ù. ÇϳªÀÇ ¼ºñ½º¿¡ ´ëÇØ ¿©·¯°³ÀÇ ¾÷¹«·ÎÁ÷À» ÄÄÆ÷³ÍÆ® ÇüÅ·ΠÀúÀÛÇÏ¿© µî·ÏÇÒ ¼ö ÀÖ´Ù. ÀÛ¼ºµÈ ActioinÀº action.properties¿¡ µî·ÏµÈ´Ù.
Constructor Summary | |
---|---|
Action()
|
Method Summary | |
---|---|
void |
execute(javax.servlet.http.HttpServlet servlet,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Ŭ¶óÀÌ¾ðÆ®¿¡¼ ¼ºñ½º¸¦ È£ÃâÇÒ ¶§ ¿äûÆÄ¶ó¹ÌÅÍ action¿¡ ¼³Á¤µÈ °ªÀ» Âü°íÇÏ¿© ÇØ´ç ¸Þ¼Òµå¸¦ ½ÇÇàÇÑ´Ù. |
protected Configuration |
getConfig()
¼³Á¤Á¤º¸¸¦ °¡Áö°í ÀÖ´Â °´Ã¼¸¦ »ý¼ºÇÏ¿© ¸®ÅÏÇÑ´Ù. |
protected ConnectionManager |
getConnectionManager()
µ¥ÀÌŸº£À̽º ¿¬°á°ü¸®ÀÚ(ÄÁ³Ø¼Ç ¸Å´ÏÀú) °´Ã¼¸¦ ¸®ÅÏÇÑ´Ù. |
protected ConnectionManager |
getConnectionManager(java.lang.String serviceName)
µ¥ÀÌŸº£À̽º ¿¬°á°ü¸®ÀÚ(ÄÁ³Ø¼Ç ¸Å´ÏÀú) °´Ã¼¸¦ ¸®ÅÏÇÑ´Ù. |
protected Box |
getInput()
¿äûÆÄ¶ó¹ÌÅÍÀÇ °ªÀ» ´ã°í ÀÖ´Â ÇØ½ÃÅ×À̺íÀ» ¸®ÅÏÇÑ´Ù. |
protected org.apache.commons.logging.Log |
getLogger()
ActionÀÇ ·Î°Å°´Ã¼¸¦ ¸®ÅÏÇÑ´Ù. |
protected MultipartBox |
getMultipartInput()
Multipart ¿äûÆÄ¶ó¹ÌÅÍÀÇ °ªÀ» ´ã°í ÀÖ´Â ÇØ½ÃÅ×À̺íÀ» ¸®ÅÏÇÑ´Ù. |
protected java.io.PrintWriter |
getOut()
ÀÀ´ä°´Ã¼ÀÇ PrintWriter °´Ã¼¸¦ ¸®ÅÏÇÑ´Ù. |
protected javax.servlet.http.HttpServletRequest |
getRequest()
HTTP Ŭ¶óÀÌ¾ðÆ® ¿äû °´Ã¼¸¦ ¸®ÅÏÇÑ´Ù. |
protected javax.servlet.http.HttpServletResponse |
getResponse()
HTTP Ŭ¶óÀÌ¾ðÆ® ÀÀ´ä °´Ã¼¸¦ ¸®ÅÏÇÑ´Ù. |
protected javax.servlet.http.HttpServlet |
getServlet()
Action°´Ã¼¸¦ È£ÃâÇÑ ¼ºí¸´ °´Ã¼¸¦ ¸®ÅÏÇÑ´Ù. |
protected javax.servlet.http.HttpSession |
getSession()
Ŭ¶óÀ̾ðÆ®ÀÇ ¼¼¼Ç °´Ã¼¸¦ ¸®ÅÏÇÑ´Ù. |
protected javax.servlet.http.HttpSession |
getSession(boolean create)
Ŭ¶óÀ̾ðÆ®ÀÇ ¼¼¼Ç °´Ã¼¸¦ ¸®ÅÏÇÑ´Ù. |
protected java.lang.Object |
getSessionAttribute(java.lang.String key)
¼¼¼Ç°´Ã¼¿¡¼ ÇØ´ç Ű¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏÇÑ´Ù. |
protected void |
route(java.lang.String key)
¿äûÀ» JSPÆäÀÌÁö·Î Æ÷¿öµå(Forward) ÇÑ´Ù. |
protected void |
route(java.lang.String key,
boolean isForward)
¿äûÀ» JSPÆäÀÌÁö·Î Æ÷¿öµå(Forward) ¶Ç´Â ÀçÁöÇâ(Redirect) ÇÑ´Ù. |
protected void |
setAttribute(java.lang.String key,
java.lang.Object value)
¿äû°´Ã¼¿¡ Ű,°ª ¼Ó¼ºÀ» ¼³Á¤ÇÑ´Ù. |
protected void |
setContentType(java.lang.String contentType)
ÀÀ´ä°´Ã¼¸¦ Ŭ¶óÀÌ¾ðÆ®¿¡°Ô Àü¼ÛÇϱâ Àü¿¡ ÄÁÅÙÃ÷ŸÀÔÀ» ¼³Á¤ÇÑ´Ù. |
protected void |
setSessionAttribute(java.lang.String key,
java.lang.Object value)
¼¼¼Ç°´Ã¼¿¡ Ű,°ª ¼Ó¼ºÀ» ¼³Á¤ÇÑ´Ù. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Action()
Method Detail |
---|
public void execute(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
servlet
- ¼ºí¸´ °´Ã¼request
- Ŭ¶óÀÌ¾ðÆ®¿¡¼ ¿äûµÈ Request°´Ã¼response
- Ŭ¶óÀÌ¾ðÆ®·Î ÀÀ´äÇÒ Response°´Ã¼protected void route(java.lang.String key)
key
- action.properties ÆÄÀÏ¿¡ µî·ÏµÈ JSP ÆäÀÌÁöÀÇ Å°protected void route(java.lang.String key, boolean isForward)
key
- action.properties ÆÄÀÏ¿¡ µî·ÏµÈ JSP ÆäÀÌÁöÀÇ Å°isForward
- trueÀÌ¸é Æ÷¿öµå(Forward), false À̸é ÀçÁöÇâ(Redirect)protected ConnectionManager getConnectionManager()
protected ConnectionManager getConnectionManager(java.lang.String serviceName)
serviceName
- ¼ºñ½º¸í(¾÷¹«¸í)
protected Configuration getConfig()
protected javax.servlet.http.HttpServlet getServlet()
protected javax.servlet.http.HttpServletRequest getRequest()
protected javax.servlet.http.HttpServletResponse getResponse()
protected javax.servlet.http.HttpSession getSession()
protected javax.servlet.http.HttpSession getSession(boolean create)
create
- ¼¼¼ÇÀÌ ¾øÀ»°æ¿ì trueÀÌ¸é »õ·Î »ý¼º, falseÀÌ¸é »ý¼ºÇÏÁö ¾ÊÀ½
protected java.lang.Object getSessionAttribute(java.lang.String key)
key
- ¼¼¼Ç°´Ã¼ÀÇ Á¶È¸Å°
protected Box getInput()
protected MultipartBox getMultipartInput()
protected java.io.PrintWriter getOut()
protected org.apache.commons.logging.Log getLogger()
protected void setContentType(java.lang.String contentType)
contentType
- ÀÀ´ä°´Ã¼¿¡ ¼³Á¤ÇÒ ÄÁÅÙÃ÷ ŸÀÔprotected void setAttribute(java.lang.String key, java.lang.Object value)
key
- ¼Ó¼ºÀÇ Å° ¹®ÀÚ¿value
- ¼Ó¼ºÀÇ °ª °´Ã¼protected void setSessionAttribute(java.lang.String key, java.lang.Object value)
key
- ¼Ó¼ºÀÇ Å° ¹®ÀÚ¿value
- ¼Ó¼ºÀÇ °ª °´Ã¼
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |