Interface ServerExtension

All Superinterfaces:
Extension<InteractionContext>
All Known Implementing Classes:
TasksExtension

@ExperimentalApi public interface ServerExtension extends Extension<InteractionContext>
Pluggable server extension that can add custom methods, capabilities, and lifecycle hooks.
  • Method Details

    • serverSettings

      default ExtensionSettings serverSettings()
      Returns the server settings to advertise in the initialize response.
    • methods

      default Set<String> methods()
      Returns the set of JSON-RPC methods this extension handles.
    • requiresMetaEnvelope

      default boolean requiresMetaEnvelope()
      Whether the extension expects a meta envelope for its handler params.
    • bootstrap

      default void bootstrap(ExtensionContext context)
      Bootstraps the extension during server startup.
    • onConnectionInit

      default void onConnectionInit(InteractionContext context, ExtensionSettings clientSettings)
      Called when a new client connection is initialised with the extension's client settings.