An HTTP servlet handles standard HTTP requests. Although HydraExpress contains a generic servlet class, in practice, most servlets provide Web services or deliver content to Web browsers. Therefore, most servlets derive from rwsf::HttpServlet.
The HelloWorldExample servlet receives an HTTP GET request from a client and returns a fixed response. The sample below shows the outline of the HelloWorldExample servlet class:
// Simplified from HelloWorldExample.h #include <rwsf/servlet/http/HttpServlet.h> class HelloWorldExample : public rwsf::HttpServlet { // Section 3.4 discusses methods for the servlet };
©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.