Each filter, servlet, or listener implementation must contain a macro that defines the class for the servlet container. The macro definition expands to a function. The servlet container uses this function to load an instance of the class.
The name of each macro starts with RWSF_DEFINE. HydraExpress includes two macros for each type of object, as shown in Table 2:
When the filter, servlet, or listener is defined within a context, the class declaration for the object must contain the generated function name. For example, the macro RWSF_DEFINE_SERVLET(MyServlet) expands to the function createMyServlet. To load the servlet, the class declaration must contain the function name createMyServlet. See Chapter 4 for information on adding filters, listeners, and servlets to the servlet container.
©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.