BBjServletData::setCallback (Deprecated)
BBjServlets are deprecated for BBj 21.00 and higher, and have been replaced by BBxServlets.
Description
In BBj 12.0 and higher, this method registers a custom object as a callback handler.
Syntax
Return Value |
Method |
---|---|
void |
setCallback(int eventType, CustomObject customObj, string methodName) |
void |
setCallback(int eventType, string subroutineName) |
Parameters
Variable |
Description |
---|---|
eventType |
Event type to clear (ON_WEB_CONNECTION) for which the callback is to be registered. |
customObj |
A custom object containing the method to be called when the event is processed by process_events. |
methodName |
The name of the method that is to be called when the event is processed by processEvents. |
SubroutineName |
Subroutine name to be executed in PROCESS_EVENTS. |
Return Value
None.
Remarks
None.
Example
|