note
	description: "Objects than can pre-process incoming data and post-process outgoing data."
	author: "Olivier Ligot"
	date: "$Date$"
	revision: "$Revision$"

deferred class
	WSF_FILTER

feature -- Access

	next: detachable WSF_FILTER
			-- Next filter

feature -- Element change

	set_next (a_next: WSF_FILTER)
			-- Set `next' to `a_next'
		do
			next := a_next
		ensure
			next_set: next = a_next
		end

feature -- Basic operations

	execute (req: WSF_REQUEST; res: WSF_RESPONSE)
			-- Execute the filter.
		deferred
		end

feature {NONE} -- Implementation

	execute_next (req: WSF_REQUEST; res: WSF_RESPONSE)
			-- Execute the `next' filter.
		do
			if attached next as n then
				n.execute (req, res)
			end
		end

note
	copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
	license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
	source: "[
			Eiffel Software
			5949 Hollister Ave., Goleta, CA 93117 USA
			Telephone 805-685-1006, Fax 805-685-6869
			Website http://www.eiffel.com
			Customer support http://support.eiffel.com
		]"
end
