Files
EWF/library/server/wsf/src/request/value/wsf_any.e
Jocelyn Fiat 50ba8ca703 Fixed various unicode issue related to query and form parameters.
(Especially for the multipart/form-data encoding.)
Factorized code related to smart parameters computing (handling list , table, ...) in WSF_VALUE_UTILITIES.
Fixed an issue with percent_encoded_path_info computation from request_uri.
Fixed issue with cookie addition having same cookie name.
Fixed unicode support for uploaded file.
WSF_STRING is reusing WSF_PERCENT_ENCODER.
Use unicode output for WSF_DEBUG_HANDLER.
Code cleaning
2015-11-05 21:32:24 +01:00

84 lines
1.5 KiB
Plaintext

note
description: "[
{WSF_ANY} represents a parameter holding any object.
]"
date: "$Date$"
revision: "$Revision$"
class
WSF_ANY
inherit
WSF_VALUE
create
make
feature {NONE} -- Initialization
make (a_name: READABLE_STRING_8; a_value: like value)
do
name := url_decoded_string (a_name)
url_encoded_name := a_name
value := a_value
end
feature -- Access
name: READABLE_STRING_32
url_encoded_name: READABLE_STRING_8
value: detachable ANY
feature -- Element change
change_name (a_name: like name)
-- <Precursor>
do
name := a_name
url_encoded_name := url_encoded_string (a_name)
end
feature -- Status report
is_string: BOOLEAN = False
-- Is Current as a WSF_STRING representation?
is_empty: BOOLEAN
do
Result := value = Void
end
feature -- Query
string_representation: STRING_32
-- String representation of Current
-- if possible
do
if attached value as v then
Result := v.generating_type
else
Result := "Void"
end
end
feature -- Visitor
process (vis: WSF_VALUE_VISITOR)
do
vis.process_any (Current)
end
note
copyright: "2011-2015, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, 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