Interface ConnectClient

All Known Implementing Classes:
HttpURLConnectionConnectClient

public interface ConnectClient
Performs the platform-side POST /api/tenants/servers/connect handshake.

Implementations must not throw from connect(java.lang.String, java.lang.String, app.l2nx.gs.adapter.api.rest.ConnectRequest); transport / parsing failures are encoded in the returned ConnectResult. This keeps ConnectFlow dispatch logic uniform across success, HTTP errors, and IO failures.

  • Method Summary

    Modifier and Type
    Method
    Description
    connect(String url, String serverKey, app.l2nx.gs.adapter.api.rest.ConnectRequest body)
    Send the connect request and return a typed result.
  • Method Details

    • connect

      ConnectResult connect(String url, String serverKey, app.l2nx.gs.adapter.api.rest.ConnectRequest body)
      Send the connect request and return a typed result.
      Parameters:
      url - full URL — typically <platformUrl>/api/tenants/servers/connect
      serverKey - raw server-key value (sent as Authorization: Bearer <key>)
      body - request payload
      Returns:
      outcome of the call — never null, never throws