PageRenderTime 79ms CodeModel.GetById 77ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

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