Removed usage of remote anchor types.
This commit is contained in:
@@ -285,23 +285,22 @@ feature -- Access
|
|||||||
require
|
require
|
||||||
has_header: has_header_named (a_name)
|
has_header: has_header_named (a_name)
|
||||||
local
|
local
|
||||||
c: like headers.new_cursor
|
|
||||||
n: INTEGER
|
n: INTEGER
|
||||||
l_line: READABLE_STRING_8
|
l_line: READABLE_STRING_8
|
||||||
do
|
do
|
||||||
from
|
n := a_name.count
|
||||||
n := a_name.count
|
|
||||||
c := headers.new_cursor
|
across
|
||||||
|
headers as ic
|
||||||
until
|
until
|
||||||
c.after or Result /= Void
|
Result /= Void
|
||||||
loop
|
loop
|
||||||
l_line := c.item
|
l_line := ic.item
|
||||||
if has_same_header_name (l_line, a_name) then
|
if has_same_header_name (l_line, a_name) then
|
||||||
Result := l_line.substring (n + 2, l_line.count)
|
Result := l_line.substring (n + 2, l_line.count)
|
||||||
Result.left_adjust
|
Result.left_adjust
|
||||||
Result.right_adjust
|
Result.right_adjust
|
||||||
end
|
end
|
||||||
c.forth
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -917,7 +916,7 @@ feature {NONE} -- Constants
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2013, Jocelyn Fiat, Eiffel Software and others"
|
copyright: "2011-2014, Jocelyn Fiat, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -28,13 +28,13 @@ feature {NONE} -- Implementation
|
|||||||
create connector.make_with_base (a_service, a_base_url)
|
create connector.make_with_base (a_service, a_base_url)
|
||||||
end
|
end
|
||||||
|
|
||||||
make_with_callback (a_callback: like {WGI_AGENT_SERVICE}.callback)
|
make_with_callback (a_callback: PROCEDURE [ANY, TUPLE [req: WGI_REQUEST; res: WGI_RESPONSE]])
|
||||||
-- Initialize `Current'.
|
-- Initialize `Current'.
|
||||||
do
|
do
|
||||||
make_custom_with_callback (a_callback, Void)
|
make_custom_with_callback (a_callback, Void)
|
||||||
end
|
end
|
||||||
|
|
||||||
make_custom_with_callback (a_callback: like {WGI_AGENT_SERVICE}.callback; a_base_url: detachable STRING)
|
make_custom_with_callback (a_callback: PROCEDURE [ANY, TUPLE [req: WGI_REQUEST; res: WGI_RESPONSE]]; a_base_url: detachable STRING)
|
||||||
-- Initialize `Current'.
|
-- Initialize `Current'.
|
||||||
require
|
require
|
||||||
base_url_starts_with_slash: (a_base_url /= Void and then not a_base_url.is_empty) implies a_base_url.starts_with ("/")
|
base_url_starts_with_slash: (a_base_url /= Void and then not a_base_url.is_empty) implies a_base_url.starts_with ("/")
|
||||||
@@ -104,7 +104,7 @@ feature -- Server
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
copyright: "2011-2014, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -25,14 +25,14 @@ feature {WSF_ROUTER} -- Routes change
|
|||||||
do
|
do
|
||||||
l_routes := available_routes
|
l_routes := available_routes
|
||||||
if l_routes = Void then
|
if l_routes = Void then
|
||||||
create {ARRAYED_LIST [like available_routes.item]} l_routes.make (3)
|
create {ARRAYED_LIST [TUPLE [resource: READABLE_STRING_8; rqst_methods: detachable ARRAY [READABLE_STRING_8]]]} l_routes.make (3)
|
||||||
available_routes := l_routes
|
available_routes := l_routes
|
||||||
end
|
end
|
||||||
l_routes.force ([a_resource, a_rqst_methods])
|
l_routes.force ([a_resource, a_rqst_methods])
|
||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
copyright: "2011-2014, 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)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -169,10 +169,10 @@ feature -- Content negotiation
|
|||||||
local
|
local
|
||||||
l_conneg: SERVER_CONTENT_NEGOTIATION
|
l_conneg: SERVER_CONTENT_NEGOTIATION
|
||||||
h: HTTP_HEADER
|
h: HTTP_HEADER
|
||||||
l_media: like {SERVER_CONTENT_NEGOTIATION}.media_type_preference
|
l_media: HTTP_ACCEPT_MEDIA_TYPE_VARIANTS
|
||||||
l_lang: like {SERVER_CONTENT_NEGOTIATION}.language_preference
|
l_lang: HTTP_ACCEPT_LANGUAGE_VARIANTS
|
||||||
l_charset: like {SERVER_CONTENT_NEGOTIATION}.charset_preference
|
l_charset: HTTP_ACCEPT_CHARSET_VARIANTS
|
||||||
l_encoding: like {SERVER_CONTENT_NEGOTIATION}.encoding_preference
|
l_encoding: HTTP_ACCEPT_ENCODING_VARIANTS
|
||||||
l_mime_types, l_langs, l_charsets, l_encodings: LIST [STRING]
|
l_mime_types, l_langs, l_charsets, l_encodings: LIST [STRING]
|
||||||
l_vary_star: BOOLEAN
|
l_vary_star: BOOLEAN
|
||||||
do
|
do
|
||||||
@@ -586,7 +586,7 @@ feature -- Error reporting
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2013, Colin Adams, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
|
copyright: "2011-2014, Colin Adams, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ feature {NONE} -- Initialization
|
|||||||
|
|
||||||
feature -- Access
|
feature -- Access
|
||||||
|
|
||||||
session_exists (a_session_uuid: like {WSF_SESSION}.uuid): BOOLEAN
|
session_exists (a_session_uuid: READABLE_STRING_8): BOOLEAN
|
||||||
local
|
local
|
||||||
f: RAW_FILE
|
f: RAW_FILE
|
||||||
do
|
do
|
||||||
@@ -38,7 +38,7 @@ feature -- Access
|
|||||||
Result := f.exists and then f.is_readable
|
Result := f.exists and then f.is_readable
|
||||||
end
|
end
|
||||||
|
|
||||||
session_data (a_session_uuid: like {WSF_SESSION}.uuid): detachable like {WSF_SESSION}.data
|
session_data (a_session_uuid: READABLE_STRING_8): detachable WSF_SESSION_DATA
|
||||||
local
|
local
|
||||||
f: RAW_FILE
|
f: RAW_FILE
|
||||||
do
|
do
|
||||||
@@ -147,13 +147,13 @@ feature {NONE} -- Implementation
|
|||||||
Result := d.exists and then d.is_writable
|
Result := d.exists and then d.is_writable
|
||||||
end
|
end
|
||||||
|
|
||||||
file_name (a_uuid: like {WSF_SESSION}.uuid): PATH
|
file_name (a_uuid: READABLE_STRING_GENERAL): PATH
|
||||||
do
|
do
|
||||||
Result := sessions_folder_name.extended (a_uuid.out).appended_with_extension ("session")
|
Result := sessions_folder_name.extended (a_uuid).appended_with_extension ("session")
|
||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2013, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
|
copyright: "2011-2014, 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)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ deferred class
|
|||||||
|
|
||||||
feature -- Access
|
feature -- Access
|
||||||
|
|
||||||
session_exists (a_uuid: like {WSF_SESSION}.uuid): BOOLEAN
|
session_exists (a_uuid: READABLE_STRING_8): BOOLEAN
|
||||||
deferred
|
deferred
|
||||||
end
|
end
|
||||||
|
|
||||||
session_data (a_uuid: like {WSF_SESSION}.uuid): detachable like {WSF_SESSION}.data
|
session_data (a_uuid: READABLE_STRING_8): detachable WSF_SESSION_DATA
|
||||||
deferred
|
deferred
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ feature -- Persistence
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2013, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
|
copyright: "2011-2014, 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)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -56,12 +56,12 @@ feature {NONE} -- Initialization
|
|||||||
launch
|
launch
|
||||||
end
|
end
|
||||||
|
|
||||||
frozen make_callback (a_callback: like {WSF_CALLBACK_SERVICE}.callback; a_options: like options)
|
frozen make_callback (a_callback: PROCEDURE [ANY, TUPLE [req: WSF_REQUEST; res: WSF_RESPONSE]]; a_options: like options)
|
||||||
do
|
do
|
||||||
make (create {WSF_CALLBACK_SERVICE}.make (a_callback), a_options)
|
make (create {WSF_CALLBACK_SERVICE}.make (a_callback), a_options)
|
||||||
end
|
end
|
||||||
|
|
||||||
frozen make_callback_and_launch (a_callback: like {WSF_CALLBACK_SERVICE}.callback; a_options: like options)
|
frozen make_callback_and_launch (a_callback: PROCEDURE [ANY, TUPLE [req: WSF_REQUEST; res: WSF_RESPONSE]]; a_options: like options)
|
||||||
do
|
do
|
||||||
make (create {WSF_CALLBACK_SERVICE}.make (a_callback), a_options)
|
make (create {WSF_CALLBACK_SERVICE}.make (a_callback), a_options)
|
||||||
end
|
end
|
||||||
@@ -120,7 +120,7 @@ invariant
|
|||||||
connector_attached: connector /= Void
|
connector_attached: connector /= Void
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
|
copyright: "2011-2014, 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)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -28,8 +28,6 @@ feature {NONE} -- Initialization
|
|||||||
end
|
end
|
||||||
|
|
||||||
make_from_table (tb: WSF_WIDGET_AGENT_TABLE [detachable ANY])
|
make_from_table (tb: WSF_WIDGET_AGENT_TABLE [detachable ANY])
|
||||||
local
|
|
||||||
fct: like {WSF_WIDGET_AGENT_TABLE [detachable ANY]}.compute_item_function
|
|
||||||
do
|
do
|
||||||
make
|
make
|
||||||
set_column_count (tb.column_count)
|
set_column_count (tb.column_count)
|
||||||
@@ -53,8 +51,7 @@ feature {NONE} -- Initialization
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- rows
|
-- rows
|
||||||
fct := tb.compute_item_function
|
if attached tb.compute_item_function as fct then
|
||||||
if fct /= Void then
|
|
||||||
if attached tb.head_data as lst then
|
if attached tb.head_data as lst then
|
||||||
across lst as d loop
|
across lst as d loop
|
||||||
add_head_row (fct.item ([d.item]))
|
add_head_row (fct.item ([d.item]))
|
||||||
|
|||||||
@@ -373,7 +373,7 @@ feature {NONE} -- Implementation
|
|||||||
tpl := template
|
tpl := template
|
||||||
|
|
||||||
--| Extract expansion parts "\\{([^\\}]*)\\}"
|
--| Extract expansion parts "\\{([^\\}]*)\\}"
|
||||||
create {ARRAYED_LIST [like expressions.item]} l_expressions.make (tpl.occurrences ('{'))
|
create {ARRAYED_LIST [URI_TEMPLATE_EXPRESSION]} l_expressions.make (tpl.occurrences ('{'))
|
||||||
from
|
from
|
||||||
i := 1
|
i := 1
|
||||||
n := tpl.count
|
n := tpl.count
|
||||||
@@ -515,7 +515,7 @@ feature {NONE} -- Implementation
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2012, Jocelyn Fiat, Eiffel Software and others"
|
copyright: "2011-2014, Jocelyn Fiat, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ feature -- Processing
|
|||||||
|
|
||||||
lst := s.split (',')
|
lst := s.split (',')
|
||||||
from
|
from
|
||||||
create {ARRAYED_LIST [like variables.item]} vars.make (lst.count)
|
create {ARRAYED_LIST [URI_TEMPLATE_EXPRESSION_VARIABLE]} vars.make (lst.count)
|
||||||
lst.start
|
lst.start
|
||||||
until
|
until
|
||||||
lst.after
|
lst.after
|
||||||
@@ -210,7 +210,7 @@ feature {NONE} -- Implementation
|
|||||||
append_custom_variables_to_string (a_ht: HASH_TABLE [detachable ANY, STRING]; vars: like variables; prefix_char, delimiter_char: CHARACTER; a_include_name: BOOLEAN; a_buffer: STRING)
|
append_custom_variables_to_string (a_ht: HASH_TABLE [detachable ANY, STRING]; vars: like variables; prefix_char, delimiter_char: CHARACTER; a_include_name: BOOLEAN; a_buffer: STRING)
|
||||||
-- If `first_char' is '%U' do not print any first character
|
-- If `first_char' is '%U' do not print any first character
|
||||||
local
|
local
|
||||||
vi: like variables.item
|
vi: URI_TEMPLATE_EXPRESSION_VARIABLE
|
||||||
l_is_first: BOOLEAN
|
l_is_first: BOOLEAN
|
||||||
vdata: detachable ANY
|
vdata: detachable ANY
|
||||||
vstr: detachable STRING
|
vstr: detachable STRING
|
||||||
@@ -273,7 +273,7 @@ feature -- Status report
|
|||||||
end
|
end
|
||||||
|
|
||||||
;note
|
;note
|
||||||
copyright: "2011-2012, Jocelyn Fiat, Eiffel Software and others"
|
copyright: "2011-2014, Jocelyn Fiat, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ feature {NONE} -- Initialization
|
|||||||
make
|
make
|
||||||
-- Initialize `Current'.
|
-- Initialize `Current'.
|
||||||
do
|
do
|
||||||
create {ARRAYED_LIST [like errors.item]} errors.make (3)
|
create {ARRAYED_LIST [ERROR]} errors.make (3)
|
||||||
create error_added_actions
|
create error_added_actions
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ feature -- Access
|
|||||||
do
|
do
|
||||||
Result := errors.first.code
|
Result := errors.first.code
|
||||||
end
|
end
|
||||||
|
|
||||||
feature -- Status
|
feature -- Status
|
||||||
|
|
||||||
has_error: BOOLEAN
|
has_error: BOOLEAN
|
||||||
@@ -82,7 +82,7 @@ feature -- Synchronization
|
|||||||
do
|
do
|
||||||
lst := synchronized_handlers
|
lst := synchronized_handlers
|
||||||
if lst = Void then
|
if lst = Void then
|
||||||
create {ARRAYED_LIST [like synchronized_handlers.item]} lst.make (0)
|
create {ARRAYED_LIST [ERROR_HANDLER]} lst.make (0)
|
||||||
lst.compare_references
|
lst.compare_references
|
||||||
synchronized_handlers := lst
|
synchronized_handlers := lst
|
||||||
end
|
end
|
||||||
@@ -312,7 +312,7 @@ feature -- Element changes
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2012, Eiffel Software and others"
|
copyright: "2011-2014, Jocelyn Fiat, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
Reference in New Issue
Block a user