Package org.apache.juneau.console.bus
A ServerBus holds retained topic values and the sessions that bridge them
to pages; a BusPolicy says what may flow, in which direction, to whom
(everything else is denied); BusEventsMixin exposes the CSRF-guarded session
POST and the capability-gated SSE stream on a REST resource. The WebSocket transport is the separate
juneau-console-bus-websocket module.
Example:
- Since:
- 10.0.0
-
ClassDescriptionExposes the bus's session POST and SSE stream on a REST resource.The bus wire format, version 1: one JSON object per frame, in a canonical field order shared with the browser codec and pinned by
bus-frames-corpus.json.What aServerBuswill carry, in which direction, to whom.Builder forBusPolicy.A named refusal from the bus: the session POST's400/403/429/501answers and the codec'sbus:bad-frame.One page's bridge session.A transport's outbound side, handed toServerBus.connect(BusSession, FrameSink)for one connection.The server half of the console message bus: a retained-value store plus the sessions that bridge it to pages.Handles one upstream topic (page → server, WebSocket bridges only).