GhServlet.java 805 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package hello;
  2. import javax.servlet.annotation.*;
  3. import com.techempower.gemini.*;
  4. /**
  5. * Main Servlet to be used by the GeminiHello application. Upon
  6. * receiving a request, this Servlet creates a Context object and
  7. * then invokes the Dispatcher. The Dispatcher determines what happens
  8. * next.
  9. *
  10. * @see com.techempower.gemini.InfrastructureServlet
  11. *
  12. * Development history:
  13. * 2012-04-19 - mh - Created
  14. *
  15. * @author mhixson
  16. */
  17. @SuppressWarnings("serial")
  18. @WebServlet(name="Gh", urlPatterns="*")
  19. public class GhServlet
  20. extends InfrastructureServlet
  21. {
  22. //
  23. // Public member methods.
  24. //
  25. /**
  26. * Gets a GeminiApplication object for this application.
  27. */
  28. @Override
  29. public GhApplication getApplication()
  30. {
  31. return GhApplication.getInstance();
  32. }
  33. } // End GhServlet.