Class Protocol


public class Protocol extends JsonProperties
A set of messages forming an application protocol.

A protocol consists of:

  • a name for the protocol;
  • an optional namespace, further qualifying the name;
  • a list of types, or named schemas;
  • a list of errors, or named schemas for exceptions;
  • a list of named messages, each of which specifies,
    • request, the parameter schemas;
    • one of either;
      • one-way
      or
      • response, the response schema;
      • errors, an optional list of potential error schema names.