Next: Enable/Disable beta messages
Up: Beta message handling
Previous: Beta message handling
Each filter object interface consists of upfilter and
downfilter methods. upfilter methods filter
corresponding client methods whereas downfilter methods
filter return results. Multiple upfilter and downfilter methods
can be associated with single client method. To provide this
facility to every filter object, Filter
, base class of each
filter object, maintains mappings between client method and
corresponding upfilter and downfilter methods. These mappings can
be manipulated by sending upfilter or downfilter
beta messages. Each beta message takes client method name and
corresponding upfilter/downfilter method name as arguments. The
filter object framework includes filterconf utility that
facilitates sending these messages to filter objects. We now
present the algorithm for sending and handling these messages
which is
implemented in the handle
method of the corresponding classes.
Scenario: Sending Up/Down filter message
- Create
StaticAny
objects representing client and
filter method names.
- Create
StaticRequest
object
representing appropriate beta message.
- Add the arguments
and invoke the request.
Scenario: Handling Up/Down filter message
- Create server side request and read the client and filter
method names using it.
- Check whether filter object already
contains mapping corresponding to client method.
- If yes,
get the corresponding Up/Down filter methods and add the filter
method name if it didn't exist already.
- If no, create
appropriate mapping in the filter object between received client
and filter method.
- Add the filter method name with
disable status if it didn't exist already.
Next: Enable/Disable beta messages
Up: Beta message handling
Previous: Beta message handling
R K Joshi
2003-05-30