-
Notifications
You must be signed in to change notification settings - Fork 16
/
xoom-http.properties
116 lines (90 loc) · 4.05 KB
/
xoom-http.properties
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Copyright 2012-2023 Vaughn Vernon
#
# This Source Code Form is subject to the terms of the
# Mozilla Public License, v. 2.0. If a copy of the MPL
# was not distributed with this file, You can obtain
# one at https://mozilla.org/MPL/2.0/.
# VLINGO XOOM Http properties
#=====================================
# server
#=====================================
server.http.port = 8080
server.dispatcher.pool = 10
server.buffer.pool.size = 100
server.message.buffer.size = 65535
server.probe.interval = 3
server.probe.timeout = 1
server.processor.pool.size = 10
server.request.missing.content.timeout = 100
#=====================================
# generated resource dispatchers
#=====================================
resource.dispatcher.generated.sources.main = target/generated-sources/
resource.dispatcher.generated.sources.test = target/generated-test-sources/
resource.dispatcher.generated.classes.main = target/classes/
resource.dispatcher.generated.classes.test = target/test-classes/
#=====================================
# static file resources
#=====================================
static.files.resource.pool = 5
static.files.resource.root = /siteroot/content
static.files.resource.subpaths = [/, /css, /js, /views]
#=====================================
# server-sent events
#=====================================
sse.stream.name.all = /eventstreams/all
sse.stream.all.feed.class = io.vlingo.xoom.http.sample.user.AllSseFeedActor
sse.stream.all.feed.payload = 50
sse.stream.all.feed.interval = 1000
sse.stream.all.feed.default.id = -1
sse.stream.all.pool = 10
#=====================================
# feed resources
#=====================================
feed.resource.name.events = /feeds/events
feed.resource.events.producer.class = io.vlingo.xoom.http.resource.feed.EventsFeedProducerActor
feed.resource.events.elements = 20
feed.resource.events.pool = 10
#=====================================
# user resources
#=====================================
resource.name.user = [register, contact, name, queryUser, queryUsers, queryUserError, changeUser]
resource.user.handler = io.vlingo.xoom.http.sample.user.UserResource
resource.user.pool = 10
resource.user.disallowPathParametersWithSlash = true
action.user.register.method = POST
action.user.register.uri = /users
action.user.register.to = register(body:io.vlingo.xoom.http.sample.user.UserData userData)
action.user.contact.method = PATCH
action.user.contact.uri = /users/{userId}/contact
action.user.contact.to = changeContact(String userId, body:io.vlingo.xoom.http.sample.user.ContactData contactData)
action.user.name.method = PATCH
action.user.name.uri = /users/{userId}/name
action.user.name.to = changeName(String userId, body:io.vlingo.xoom.http.sample.user.NameData nameData)
action.user.queryUser.method = GET
action.user.queryUser.uri = /users/{userId}
action.user.queryUser.to = queryUser(String userId)
action.user.queryUsers.method = GET
action.user.queryUsers.uri = /users
action.user.queryUsers.to = queryUsers()
action.user.queryUserError.method = GET
action.user.queryUserError.uri = /user/{userId}/error
action.user.queryUserError.to = queryUserError(String userId)
action.user.changeUser.method = PUT
action.user.changeUser.uri = /users/{userId}
action.user.changeUser.to = changeUser(String userId, body:io.vlingo.xoom.http.sample.user.UserData userData)
#=====================================
# profile resources
#=====================================
resource.name.profile = [define, query]
resource.profile.handler = io.vlingo.xoom.http.sample.user.ProfileResource
resource.profile.pool = 5
resource.profile.disallowPathParametersWithSlash = false
action.profile.define.method = PUT
action.profile.define.uri = /users/{userId}/profile
action.profile.define.to = define(String userId, body:io.vlingo.xoom.http.sample.user.ProfileData profileData)
action.profile.define.mapper = io.vlingo.xoom.http.sample.user.ProfileDataMapper
action.profile.query.method = GET
action.profile.query.uri = /users/{userId}/profile
action.profile.query.to = query(String userId)
action.profile.query.mapper = io.vlingo.xoom.http.sample.user.ProfileDataMapper