KickJava   Java API By Example, From Geeks To Geeks.

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


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 import org.apache.ecs.xhtml.*;
21
22 /**
23  * Status Servlet
24  *
25  * @author Jorg Janke
26  * @version $Id: WStatus.java,v 1.1.1.1 2002/10/12 01:06:55 jjanke Exp $
27  */

28 public class WStatus extends HttpServlet
29 {
30     /**
31      * Initialize global variables
32      * This servlet is also loaded on startup to initialize the system
33      */

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

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

44     public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
45     {
46         WDoc doc = WDoc.create ("WStatus Get Request");
47         //
48
WUtil.createResponse(request, response, this, null, doc, true);
49     } // doGet
50

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

55     public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
56     {
57         WDoc doc = WDoc.create ("WStatus Post Request");
58         //
59
WUtil.createResponse(request, response, this, null, doc, true);
60     } // doPost
61

62 } // WStatus
63
Popular Tags