com.gauce.gaucelet
Class GenericGaucelet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.gauce.gaucelet.GenericGaucelet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
HttpGaucelet

public abstract class GenericGaucelet
extends javax.servlet.http.HttpServlet

ÀÏ¹Ý ¼­ºí¸´ÀÇ ¼­ºñ½º¸¦ GauceletÀ¸·Î º¯°æÇϱâ À§ÇØ Base°¡ µÇ´Â Ŭ·¡½ºÀÌ´Ù.

Since:
Gauce 2.9
Version:
1.0 2002.11
Author:
Shift Information & Communication CO.
See Also:
Serialized Form

Constructor Summary
GenericGaucelet()
           
 
Method Summary
 void changeRequestProtocol(int protocol)
          Component¿¡¼­ ¿äûµÇ´Â RequestÀÇ ProtocolÀ» º¯È¯ÇÑ´Ù.
 void changeResponseProtocol(int protocol)
          Component·Î Àü¼ÛµÇ´Â ResponseÀÇ ProtocolÀ» º¯È¯ÇÑ´Ù.
abstract  void doGet(GauceRequest req, GauceResponse res)
          Get¹æ½ÄÀ¸·Î È£ÃâµÇ´Â Request¿¡ ´ëÇØ ¼­ºñ½º ÇÑ´Ù.
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          ¼­ºí·§ÀÇ get¹æ½ÄÀ» ó¸®ÇÏ´Â method.
abstract  void doPost(GauceRequest req, GauceResponse res)
          Post¹æ½ÄÀ¸·Î È£ÃâµÇ´Â Request¿¡ ´ëÇØ ¼­ºñ½º ÇÑ´Ù.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          ¼­ºí·§ÀÇ post¹æ½ÄÀ» ó¸®ÇÏ´Â method.
 int getFirstRowSize()
          ÇöÀç ¼­ºñ½º¿¡¼­ »ç¿ëÁßÀÎ first-rowÀÇ Å©±â¸¦ ¹ÝȯÇÑ´Ù.
 GauceContext getGauceContext()
          ÇöÀç »ç¿ëÁßÀÎ GauceContext¸¦ ¹ÝȯÇÑ´Ù.
 void init(javax.servlet.ServletConfig config)
          Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
abstract  void init(java.lang.String domain)
          GauceService¸¦ ÃʱâÈ­ ½ÃŲ´Ù.
 void setFirstRowSize(int firstRowSize)
          ÇöÀç ¼­ºñ½ºÀÇ first-row Å©±â¸¦ ¼³Á¤ÇÑ´Ù.
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericGaucelet

public GenericGaucelet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Called by the servlet container to indicate to a servlet that the servlet is being placed into service.

This implementation stores the ServletConfig object it receives from the servlet container for later use. When overriding this form of the method, call super.init(config).

Parameters:
config - the ServletConfig object that contains configutation information for this servlet
Throws:
javax.servlet.ServletException - if an exception occurs that interrupts the servlet's normal operation
Since:
Gauce 2.9

init

public abstract void init(java.lang.String domain)
                   throws GauceletException
GauceService¸¦ ÃʱâÈ­ ½ÃŲ´Ù.

¿©±â¼­ domainÀº gauceÀÌ´Ù.

Parameters:
domain - ÇöÀç ¼­ºñ½º°¡ »ç¿ëÁßÀÎ domain
Throws:
GauceletException - ÃʱâÈ­ ÇÏ´Â µ¿¾È ¹ß»ýÇÏ´Â ¿À·ù
Since:
Gauce 2.9

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws java.io.IOException,
                  javax.servlet.ServletException
¼­ºí·§ÀÇ get¹æ½ÄÀ» ó¸®ÇÏ´Â method.

ÀÌ method¿¡¼­ GauceÀÇ GET¹æ½Ä°ú POST¹æ½ÄÀ» dispatcherÇÑ´Ù.

Parameters:
req - ServletRequest
res - ServletResponse
Throws:
java.io.IOException - IO StreamÀ» HandlingÇϸ鼭 ¹ß»ýÇÏ´Â ¿À·ù
javax.servlet.ServletException - Servlet ¶Ç´Â Gaucelet¿¡¼­ ¹ß»ýÇÏ´Â ¿À·ù
Since:
Gauce 2.9

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws java.io.IOException,
                   javax.servlet.ServletException
¼­ºí·§ÀÇ post¹æ½ÄÀ» ó¸®ÇÏ´Â method.

ÀÌ method¿¡¼­ doGet method¸¦ È£ÃâÇÑ´Ù.

Parameters:
req - ServletRequest
res - ServletResponse
Throws:
java.io.IOException - IO StreamÀ» HandlingÇϸ鼭 ¹ß»ýÇÏ´Â ¿À·ù
javax.servlet.ServletException - Servlet ¶Ç´Â Gaucelet¿¡¼­ ¹ß»ýÇÏ´Â ¿À·ù
Since:
Gauce 2.9

changeRequestProtocol

public void changeRequestProtocol(int protocol)
Component¿¡¼­ ¿äûµÇ´Â RequestÀÇ ProtocolÀ» º¯È¯ÇÑ´Ù.

Parameters:
protocol - º¯°æÇÒ Protocol
Since:
Gauce 2.9

changeResponseProtocol

public void changeResponseProtocol(int protocol)
Component·Î Àü¼ÛµÇ´Â ResponseÀÇ ProtocolÀ» º¯È¯ÇÑ´Ù.

Parameters:
protocol - º¯°æÇÒ Protocol
Since:
Gauce 2.9

setFirstRowSize

public void setFirstRowSize(int firstRowSize)
ÇöÀç ¼­ºñ½ºÀÇ first-row Å©±â¸¦ ¼³Á¤ÇÑ´Ù.

¼³Á¤µÈ °ªÀº ÇöÀç¼­ºñ½ºÀÇ ¸ðµç ºÎºÐ¿¡ Àû¿ëÀÌ µÇ¸ç ¼³Á¤ÇÏÁö ¾ÊÀ¸¸é GauceContextÀÇ Default°ªÀ» »ç¿ëÇÑ´Ù.

Parameters:
firstRowSize - ¼³Á¤ÇÒ first-row ÀÇ Å©±â
Since:
Gauce 2.9

getFirstRowSize

public int getFirstRowSize()
ÇöÀç ¼­ºñ½º¿¡¼­ »ç¿ëÁßÀÎ first-rowÀÇ Å©±â¸¦ ¹ÝȯÇÑ´Ù.

Returns:
ÇöÀç »ç¿ëÁßÀÎ first-rowÀÇ Å©±â
Since:
Gauce 2.9

getGauceContext

public GauceContext getGauceContext()
ÇöÀç »ç¿ëÁßÀÎ GauceContext¸¦ ¹ÝȯÇÑ´Ù.

Returns:
ÇöÀç »ç¿ëµÇ°í ÀÖ´Â GauceContext
Since:
Gauce 2.9

doGet

public abstract void doGet(GauceRequest req,
                           GauceResponse res)
                    throws GauceletException,
                           java.io.IOException
Get¹æ½ÄÀ¸·Î È£ÃâµÇ´Â Request¿¡ ´ëÇØ ¼­ºñ½º ÇÑ´Ù.

Parameters:
req - GauceRequest
res - GauceResponse
Throws:
GauceletException - Gauce ServiceÇϴµ¿¾È ¹ß»ýÇÏ´Â ¿À·ù
java.io.IOException - Component¿¡¼­ ¿äûµÇ´Â Request¸¦ ó¸®Çϸ鼭 ¹ß»ýÇÏ´Â ¿À·ù
Since:
Gauce 2.9

doPost

public abstract void doPost(GauceRequest req,
                            GauceResponse res)
                     throws GauceletException,
                            java.io.IOException
Post¹æ½ÄÀ¸·Î È£ÃâµÇ´Â Request¿¡ ´ëÇØ ¼­ºñ½º ÇÑ´Ù.

Parameters:
req - GauceRequest
res - GauceResponse
Throws:
GauceletException - Gauce ServiceÇϴµ¿¾È ¹ß»ýÇÏ´Â ¿À·ù
java.io.IOException - Component¿¡¼­ ¿äûµÇ´Â Request¸¦ ó¸®Çϸ鼭 ¹ß»ýÇÏ´Â ¿À·ù
Since:
Gauce 2.9