com.shift.framework.connector.http
Class HTTPProcessor

java.lang.Object
  extended by com.shift.framework.connector.ServiceControllerFactory
      extended by com.shift.framework.connector.http.HTTPProcessor
All Implemented Interfaces:
ServiceController

public class HTTPProcessor
extends ServiceControllerFactory

Ŭ¶óÀÌ¾ðÆ®·ÎºÎÅÍ Àü¼ÛµÈ ¿äûÀ» ¼­ºñ½º¸¦ ÅëÇØ¼­ ó¸®Çϰí, ±× ó¸® °á°ú¸¦ Àü´ÞÇÏ´Â ÇÁ·Î¼¼½º¸¦ ´ã´çÇÑ´Ù. ƯÈ÷ HTTPProcessor´Â ÀϹÝÀûÀÎ HTTPÇÁ·ÎÅäÄÝÀÇ ¿äû/ÀÀ´äÀ» ó¸®Çϴµ¥ ÇÊ¿äÇÑ ±¸ÇöÀÌ Æ÷ÇԵȴÙ.

Since:
2006.04.04
Version:
1.0
Author:
Shift Information & Communication

Constructor Summary
HTTPProcessor(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          »ý¼ºÀÚ
 
Method Summary
 void close(long time)
          GAUCE/InnoXync StreamÀ» closeÇÑ´Ù.
 void handleException(java.lang.Exception e)
          HTTP¼­ºñ½º¿¡¼­ ExceptionÀÌ ¹ß»ýÇÑ °Í¿¡ ´ëÇÑ Ã³¸®.
 void handleResponse(Service service, long time)
          Å¬¶óÀ̾ðÆ®ÀÇ ¿äû¿¡ µû¸¥ ÀÀ´äÀ» ó¸®ÇÏ°í ±× °á°ú¸¦ È£ÃâÇÑ Å¬¶óÀÌ¾ðÆ®¿¡ Àü¼ÛÇÑ´Ù.
 java.lang.Object setArgument(AppConfig conf)
          Å¬¶óÀÌ¾ðÆ® ¿äû¿¡ ÀÇÇØ¼­ Àü´ÞµÈ ¿äûÁ¤º¸¸¦ ÆÄ½ÌÇÏ¿© ¼­ºñ½º¿Í ¹ÙÀεùµÇ¾î ÀÖ´Â ÀÎÅÍÆäÀ̽º¸¦ ÅëÇØ¼­ POJO°´Ã¼·Î º¯È¯Çϰí À̸¦ ¹ÝȯÇÑ´Ù.
 
Methods inherited from class com.shift.framework.connector.ServiceControllerFactory
extractParameterValues, getActionName, getInstance, handleRequest
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPProcessor

public HTTPProcessor(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
»ý¼ºÀÚ

Parameters:
request - Ŭ¶óÀÌ¾ðÆ®·ÎºÎÅÍ Àü¼ÛµÈ ¿äû
response - Ŭ¶óÀÌ¾ðÆ®¿¡ Àü´ÞÇÑ ÀÀ´ä
Since:
1.0
Method Detail

setArgument

public java.lang.Object setArgument(AppConfig conf)
                             throws java.lang.Exception
Ŭ¶óÀÌ¾ðÆ® ¿äû¿¡ ÀÇÇØ¼­ Àü´ÞµÈ ¿äûÁ¤º¸¸¦ ÆÄ½ÌÇÏ¿© ¼­ºñ½º¿Í ¹ÙÀεùµÇ¾î ÀÖ´Â ÀÎÅÍÆäÀ̽º¸¦ ÅëÇØ¼­ POJO°´Ã¼·Î º¯È¯Çϰí À̸¦ ¹ÝȯÇÑ´Ù.

Parameters:
conf - ¼­ºñ½º¿Í ¿¬°áµÇ¾î ÀÖ´Â ¼³Á¤Á¤º¸¸¦ °¡Áø AppConfig
Returns:
µ¥ÀÌÅͼÂÀÇ Á¤º¸¸¦ ±×·¡µµ ¸ÅÇνÃŲ POJO°´Ã¼
Throws:
java.lang.Exception
Since:
1.0

handleException

public void handleException(java.lang.Exception e)
HTTP¼­ºñ½º¿¡¼­ ExceptionÀÌ ¹ß»ýÇÑ °Í¿¡ ´ëÇÑ Ã³¸®.


handleResponse

public void handleResponse(Service service,
                           long time)
                    throws java.lang.Exception
Ŭ¶óÀ̾ðÆ®ÀÇ ¿äû¿¡ µû¸¥ ÀÀ´äÀ» ó¸®ÇÏ°í ±× °á°ú¸¦ È£ÃâÇÑ Å¬¶óÀÌ¾ðÆ®¿¡ Àü¼ÛÇÑ´Ù. HTTPProcessor´Â ¼­ºñ½º»ó¿¡¼­ ó¸®ÇÑ´Ù.

Parameters:
service - Ŭ¶óÀÌ¾ðÆ®·ÎºÎÅÍ ¿äûµÈ ¼­ºñ½º
Throws:
java.lang.Exception
Since:
1.0

close

public void close(long time)
GAUCE/InnoXync StreamÀ» closeÇÑ´Ù.