Package app.l2nx.gs.adapter.core.connect
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 TypeMethodDescriptionSend 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/connectserverKey- raw server-key value (sent asAuthorization: Bearer <key>)body- request payload- Returns:
- outcome of the call — never
null, never throws
-