Class UriRuntimeConnection

java.lang.Object
com.github.copilot.rpc.RuntimeConnection
com.github.copilot.rpc.UriRuntimeConnection

@CopilotExperimental public final class UriRuntimeConnection extends RuntimeConnection
Connects to an already-running runtime at the configured URL. Construct with RuntimeConnection.forUri(String).
Since:
1.0.0
  • Method Details

    • getUrl

      public String getUrl()
      Returns the URL of the runtime to connect to.
      Returns:
      the URL; accepts "port", "host:port", or a full URL
    • getConnectionToken

      public String getConnectionToken()
      Returns the shared secret used to authenticate the connection.
      Returns:
      the token, or null if the runtime does not require one
    • setConnectionToken

      public UriRuntimeConnection setConnectionToken(String connectionToken)
      Sets the shared secret used to authenticate the connection.
      Parameters:
      connectionToken - the token, or null if the runtime does not require one
      Returns:
      this instance for method chaining