|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface RequestHandler
Use this interface if you want to redirect HTTP requests received from i-net Clear Reports report server to your own class.
This can be useful if you want to display runtime information of the cache or of the i-net Scheduler.
You can register your RequestHandler by set the property "requesthandler" in the i-net Clear Reports configuration, e.g.:
requesthandler=com.companyname.MyRequestHandler
You can also set multiple RequestHandler, separated with commas.
The class must be added to the class path of i-net Clear Reports.
Note: if you use multiple RequestHandler and if one RequestHandler executes a request, no other RequestHandler will receive this request.
A sample RequestHandler can be found in the package samples.requesthandler.
| Method Summary | |
|---|---|
boolean |
acceptsRequest(java.util.Properties props)
This method indicates whether this RequestHandler will execute the request with the passed Properties. |
void |
handleRequest(java.net.Socket socket,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.io.OutputStream out,
java.util.Properties props)
Implement the logic of your RequestHandler here. |
| Method Detail |
|---|
void handleRequest(java.net.Socket socket,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.io.OutputStream out,
java.util.Properties props)
throws java.lang.Exception
socket - Is not null in context of standalone report server. Is null in context of Servlet(application server).request - Is a HttpServletRequest Object containing information about the requestresponse - Is a HttpServletResponse Object which can contain information about the responseout - This is the Socket-OutputStream or the HttpServletResponse-OutputStream. Use this OutputStream to show a HTML page for example.props - This Properties object contains all POST and GET parameters. Note: Every parameter key name is in lower case.
java.lang.Exception - if an exception occurs, this exception is shown to the clientboolean acceptsRequest(java.util.Properties props)
"init=scheduler""init=cacheviewer"
props - This properties object contains all POST and GET parameter. Note: Every parameter is in lower case.
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||