i-net Clear Reports

Implementation of an own request handler

Application area of a RequestHandler

If you use i-net Clear Reports report server, it may be useful to have an own control structure for process HTTP requests received from report server.
A lot of application area are thinkable. For example show runtime information of report cache or of i-net Scheduler. Also a security layer accessing requests only for specific user (user management) is possible.

RequestHandler principle

The principle of RequestHandler is easy. The RequestHandler has two methods. One method decides whether the request have to processed by this RequestHandler, the other method process the request and returns the answer for the client.

Add a RequestHandler

Two steps are required to add a RequestHandler.

  • Add it to classpath of i-net Clear Reports.
  • Register the RequestHandler in the configuration.
    Sample entry:
    com.companyname.MyRequestHandler, com.companyname.MySecondRequestHandler

Sample implementation of a RequestHandler

In the Java code samples you can find the sample implementation: sample/requesthandler/RequestHandlerCacheViewer.java.

This sample shows the usage of the RequestHandler interface.

It will display the current state of the report cache. It can be called by the following after starting it:

http://<host>:<port>/?init=samplecacheviewer

See Also:


i-net software strives to provide accurate product documentation. Please give us your feedback using the form below.
NOTE: This form is for documentation feedback only. For technical assistance, please send an email to clearreports@inetsoftware.de.

 

© Copyright 1996 - 2012, i-net software; All Rights Reserved.