forked from jocelyn/EWF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wsf_router_item.e
84 lines (67 loc) · 1.55 KB
/
wsf_router_item.e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
note
description: "[
Entry of WSF_ROUTER
It contains
- mapping
- request methods
]"
date: "$Date$"
revision: "$Revision$"
class
WSF_ROUTER_ITEM
inherit
DEBUG_OUTPUT
create
make,
make_with_request_methods
feature {NONE} -- Initialization
make (m: like mapping)
do
mapping := m
end
make_with_request_methods (m: like mapping; r: like request_methods)
do
make (m)
set_request_methods (r)
end
feature -- Access
mapping: WSF_ROUTER_MAPPING
request_methods: detachable WSF_REQUEST_METHODS
feature -- Status report
debug_output: READABLE_STRING_GENERAL
-- String that should be displayed in debugger to represent `Current'.
local
s: STRING_32
do
create s.make_from_string_general (mapping.debug_output)
if attached request_methods as mtds then
s.append_string (" [ ")
across
mtds as c
loop
s.append_string (c.item)
s.append_string (" ")
end
s.append_string ("]")
end
Result := s
end
feature -- Change
set_request_methods (r: like request_methods)
-- Set `request_methods' to `r'
do
request_methods := r
end
invariant
mapping_attached: mapping /= Void
note
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)"
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