/library/server/httpd_connector/fcgi/src/httpd_fcgi_server_input.e

http://github.com/jocelyn/EiffelWebReloaded · Specman e · 66 lines · 45 code · 15 blank · 6 comment · 1 complexity · 72694ebb453f21c6ee802a09b7c48041 MD5 · raw file

  1. note
  2. description: "Summary description for {HTTPD_FCGI_SERVER_INPUT}."
  3. legal: "See notice at end of class."
  4. status: "See notice at end of class."
  5. date: "$Date$"
  6. revision: "$Revision$"
  7. class
  8. HTTPD_FCGI_SERVER_INPUT
  9. inherit
  10. HTTPD_SERVER_INPUT
  11. STRING_HANDLER
  12. create
  13. make
  14. feature {NONE} -- Initialization
  15. make (a_fcgi: like fcgi)
  16. require
  17. valid_fcgi: a_fcgi /= Void
  18. do
  19. fcgi := a_fcgi
  20. initialize
  21. end
  22. initialize
  23. -- Initialize Current
  24. do
  25. create last_string.make_empty
  26. end
  27. feature -- Basic operation
  28. read_stream (nb_char: INTEGER)
  29. -- Read a string of at most `nb_char' bound characters
  30. -- or until end of file.
  31. -- Make result available in `last_string'.
  32. do
  33. fcgi.fill_string_from_stdin (last_string, nb_char)
  34. end
  35. feature -- Access
  36. last_string: STRING
  37. -- Last string read
  38. feature {NONE} -- Implementation
  39. fcgi: FCGI;
  40. -- Bridge to FCGI world
  41. note
  42. copyright: "Copyright (c) 1984-2011, Eiffel Software and others"
  43. license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
  44. source: "[
  45. Eiffel Software
  46. 5949 Hollister Ave., Goleta, CA 93117 USA
  47. Telephone 805-685-1006, Fax 805-685-6869
  48. Website http://www.eiffel.com
  49. Customer support http://support.eiffel.com
  50. ]"
  51. end