blob: d57724e12a2570f8012144fd049503ce735a8e7f (
plain)
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
|
<div class="section-hidden">
<h2>Publish message</h2>
<div class="hider">
<form action="#/exchanges/publish" method="post">
<% if (mode == 'queue') { %>
<input type="hidden" name="vhost" value="<%= fmt_string(queue.vhost) %>"/>
<input type="hidden" name="name" value="amq.default"/>
<% } else { %>
<input type="hidden" name="vhost" value="<%= fmt_string(exchange.vhost) %>"/>
<input type="hidden" name="name" value="<%= fmt_exchange_url(exchange.name) %>"/>
<% } %>
<input type="hidden" name="properties" value=""/>
<table class="form">
<% if (mode == 'queue') { %>
<tr>
<td colspan="2"><input type="hidden" name="routing_key" value="<%= fmt_string(queue.name) %>"/> Message will be published to the default exchange with routing key <strong><%= fmt_string(queue.name) %></strong>, routing it to this queue.</td>
</tr>
<% } else { %>
<tr>
<th><label>Routing key:</label></th>
<td><input type="text" name="routing_key" value=""/></td>
</tr>
<% } %>
<% if (mode == 'queue' && is_classic(queue)) { %>
<tr>
<th><label>Delivery mode:</label></th>
<td>
<select name="delivery_mode">
<option value="1">1 - Non-persistent</option>
<option value="2">2 - Persistent</option>
</select>
</td>
</tr>
<% } else { %>
<input type="hidden" name="delivery_mode" value="2">
<% } %>
<tr>
<th>
<label>
Headers:
<span class="help" id="message-publish-headers"></span>
</label>
</th>
<td>
<div class="multifield" id="headers"></div>
</td>
</tr>
<tr>
<th>
<label>
Properties:
<span class="help" id="message-publish-properties"></span>
</label>
</th>
<td>
<div class="multifield string-only" id="props"></div>
</td>
</tr>
<tr>
<th><label>Payload:</label></th>
<td><textarea name="payload"></textarea></td>
</tr>
</table>
<input type="submit" value="Publish message" />
</form>
</div>
</div>
|