12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- package hello;
- import javax.servlet.annotation.*;
- import com.techempower.gemini.*;
- /**
- * Main Servlet to be used by the GeminiHello application. Upon
- * receiving a request, this Servlet creates a Context object and
- * then invokes the Dispatcher. The Dispatcher determines what happens
- * next.
- *
- * @see com.techempower.gemini.InfrastructureServlet
- *
- * Development history:
- * 2012-04-19 - mh - Created
- *
- * @author mhixson
- */
- @SuppressWarnings("serial")
- @WebServlet(name="Gh", urlPatterns="*")
- public class GhServlet
- extends InfrastructureServlet
- {
- //
- // Public member methods.
- //
- /**
- * Handles the init call. Starts the Infrastructure. This method -must-
- * call super.init().
- */
- @Override
- public void init()
- {
- // Do not remove the super.init() call below.
- super.init();
- // Additional initialization is optional.
- }
- /**
- * Gets a GeminiApplication object for this application.
- */
- @Override
- public GhApplication getApplication()
- {
- return GhApplication.getInstance();
- }
- /**
- * Handles the destroy call. This method -must- call super.destroy().
- */
- @Override
- public void destroy()
- {
- // Do not remove the super.destroy() call below.
- super.destroy();
- // Additional clean-up is optional.
- }
- } // End GhServlet.
|