reply

reply(html: String) updating;

The reply method of the WebSession class, which is executed when all processing is complete and the JADE system is ready to send a response back to the Web browser, can be reimplemented in your user session class. The html parameter specifies the response that is to be sent back to the Web browser.

You can reimplement this method in your applications; for example, if you want to manipulate the string before sending a reply back to the Web browser. The following example shows the use of this method to keep a count of the replies that are sent to the Web browser.

reply(html: String) updating;
begin
    //count is a property in the Global class of the user-defined schema
    beginTransaction;
        global.count := global.count + 1;
    commitTransaction;
    //now call the default implementation
    inheritMethod(html);
end;

If the JADE implementation of this method is not called (by using the inheritMethod instruction), it is your responsibility to send a response back to the Web browser.

If you modify the html parameter value, it is your responsibility to ensure that the information is displayed as you expect.

You can use the MinMessageSize parameter in the [application-name] section of the jadehttp.ini file or the MinMessageSize directive in the Apache mod_jadehttp.so library to specify the minimum size allowed for a Web message received from JADE when using the reply method to send HTML string Web requests back to the client node. The minimum value is 1 byte, the maximum value 1024 bytes, and the default value 10 bytes. This value is read the first time the specified application is accessed after jadehttp.dll has been loaded by Internet Information Server (IIS) or it is read once, when the Apache Web server starts.