KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > www > WProcess


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.www;
15
16 import javax.servlet.*;
17 import javax.servlet.http.*;
18 import java.io.*;
19 import java.util.*;
20
21 /**
22  *
23  *
24  * @author Jorg Janke
25  * @version $Id: WProcess.java,v 1.1.1.1 2002/10/12 01:06:55 jjanke Exp $
26  */

27 public class WProcess extends HttpServlet
28 {
29     /**
30      * Initialize global variables
31      */

32     public void init(ServletConfig config)
33         throws ServletException
34     {
35         super.init(config);
36         if (!WEnv.initWeb(config))
37             throw new ServletException("WProcess.init");
38     } // init
39

40     /**
41      * Process the HTTP Get request
42      */

43     public void doGet(HttpServletRequest request, HttpServletResponse response)
44         throws ServletException, IOException
45     {
46         WDoc doc = WDoc.create ("WProcess - Get - Not Implemented Yet");
47         //
48
WUtil.createResponse(request, response, this, null, doc, false);
49     } // doGet
50

51
52     /**
53      * Process the HTTP Post request
54      */

55     public void doPost(HttpServletRequest request, HttpServletResponse response)
56         throws ServletException, IOException
57     {
58         WDoc doc = WDoc.create ("WProcess - Post - Not Implemented Yet");
59         //
60
WUtil.createResponse(request, response, this, null, doc, false);
61     } // doPost
62

63 } // WProcess
64
Popular Tags