KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lutris > appserver > welcome > presentation > ErrorHandler


1
2 /*
3  * Enhydra Java Application Server Project
4  *
5  * The contents of this file are subject to the Enhydra Public License
6  * Version 1.1 (the "License"); you may not use this file except in
7  * compliance with the License. You may obtain a copy of the License on
8  * the Enhydra web site ( http://www.enhydra.org/ ).
9  *
10  * Software distributed under the License is distributed on an "AS IS"
11  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
12  * the License for the specific terms governing rights and limitations
13  * under the License.
14  *
15  * The Initial Developer of the Enhydra Application Server is Lutris
16  * Technologies, Inc. The Enhydra Application Server and portions created
17  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
18  * All Rights Reserved.
19  *
20  * Contributor(s):
21  *
22  * $Id: ErrorHandler.java,v 1.1 2004/08/16 10:50:22 slobodan Exp $
23  */

24
25 package com.lutris.appserver.welcome.presentation;
26
27 //dr2806 import com.lutris.xml.xmlc.*;
28
//dr2806 import com.lutris.xml.xmlc.html.*;
29
import com.lutris.appserver.server.httpPresentation.*;
30 import java.io.*;
31 import org.w3c.dom.*;
32 import org.w3c.dom.html.*;
33
34 /**
35  * Trivial error handler.
36  */

37 public class ErrorHandler implements HttpPresentation {
38     /**
39      * Entry.
40      */

41     public void run(HttpPresentationComms comms)
42         throws HttpPresentationException {
43         ErrorHandlerHTML htmlObj
44             = (ErrorHandlerHTML)comms.xmlcFactory.create(ErrorHandlerHTML.class);
45         comms.response.writeHTML(htmlObj);
46     }
47 }
48
Popular Tags