Interface TerminalViewMixin


public interface TerminalViewMixin
Mixin interface that serves the terminal-view events endpoint.

The one abstract method is the application's resolver, which is where authorization lives: an unknown id and a forbidden id both answer 404, so ids cannot be enumerated. Run ids are opaque URL tokens matching ^[A-Za-z0-9_-]{1,128}$; anything else answers 400 before the resolver runs.

Example:

@Rest public class RunsResource extends BasicRestServlet implements TerminalViewMixin { @Override public Optional<TerminalViewSource> terminalViewSource(String runId, RestRequest req) { return runs.find(runId).map(Run::events); } }