next up previous
Next: The filterconf Utility and Up: Filter Object Development Process Previous: Post-processing the Filter Header

Implementing Filter Objects

Since filter objects are full-fledged CORBA objects, implementing a filter object is similar to implementing any other CORBA object. Each of the filter method is implemented keeping in mind the server method it is going to up-filter or down-filter.

Figure 4: Sample Configuration File



/* Filter section with unique key filter */ 

[ filter ]
{
[ FilterRepo ] /* contains filter IMR repoid */
{
/* Filter id and Tag */
IDL:AccountFilter:1.0 foobar
}
[ Enable ] /* contains filter method to be enabled. */
{
balanceUp
balanceDown
}
[ Mappings ] /* contains up & down method mappings. */
{
Up balance balanceUp
Down balance balanceDown
}
}
[ client ] /* Client section with unique key 'client' */
{
/* contains client and filter ids to be plugged. */
[ Plug ]
{
[ ClientRepo ] /* contains client IMR repoids */
{
IDL:Account:1.0 foobar
}
[ FilterRepo ] /* contains filter IMR repoids */
{
IDL:AccountFilter:1.0 foobar
}
}
}



R K Joshi 2003-05-30