Femto Web Server V1.4-F

dfischer.femtowebserver.test
Class DivisionByNullTestWeblet

java.lang.Object
  |
  +--dfischer.femtowebserver.test.DivisionByNullTestWeblet
All Implemented Interfaces:
HttpdWebletInterface

public class DivisionByNullTestWeblet
extends java.lang.Object
implements HttpdWebletInterface

This example shows what happens, when a java Exception occurs during the execution of the Weblet. The Femto Web Server response is "500 Internal Server Error".

You can download the sourcecode of all examples at: http://www.d-fischer.com/femto/FemtoProgrammingExamplesSourcecode.zip


Constructor Summary
DivisionByNullTestWeblet()
           
 
Method Summary
 void execute(HttpRequest req, HttpResponse res, HttpdProperties httpdProperties)
          Executes the Weblet.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DivisionByNullTestWeblet

public DivisionByNullTestWeblet()
Method Detail

execute

public void execute(HttpRequest req,
                    HttpResponse res,
                    HttpdProperties httpdProperties)
             throws java.lang.Exception
Description copied from interface: HttpdWebletInterface
Executes the Weblet.
Specified by:
execute in interface HttpdWebletInterface
Following copied from interface: dfischer.femtowebserver.httpd.HttpdWebletInterface
Parameters:
httpRequest - access to the HTTP request data (browser request)
httpResponse - Weblet HTTP response data (server response)
httpdProperties - read/only access to the Femto Web Server configuration

Femto Web Server V1.4-F

Copyright 2002, 2003, 2006 by Ingenieurbüro David Fischer GmbH, Switzerland. All rights reserved.