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 };
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.