GhContext.java 846 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package hello;
  2. import com.techempower.gemini.*;
  3. /**
  4. * A special version of Context that provides GeminiHello-specific
  5. * functionality.
  6. *
  7. * @see com.techempower.gemini.Context
  8. *
  9. * Development history:
  10. * 2012-04-19 - mh - Created
  11. *
  12. * @author mhixson
  13. */
  14. public class GhContext
  15. extends Context
  16. {
  17. //
  18. // Member variables.
  19. //
  20. //
  21. // Member methods.
  22. //
  23. /**
  24. * Standard constructor.
  25. *
  26. * @param request the Request object received by the servlet.
  27. * @param application the application.
  28. */
  29. public GhContext(Request request,
  30. GeminiApplication application)
  31. {
  32. super(request, application);
  33. }
  34. /**
  35. * @see com.techempower.gemini.Context.getApplication()
  36. */
  37. @Override
  38. public GhApplication getApplication()
  39. {
  40. return (GhApplication)super.getApplication();
  41. }
  42. } // End GhContext.