Class UriRuntimeConnection
java.lang.Object
com.github.copilot.rpc.RuntimeConnection
com.github.copilot.rpc.UriRuntimeConnection
Connects to an already-running runtime at the configured URL. Construct with
RuntimeConnection.forUri(String).- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the shared secret used to authenticate the connection.getUrl()Returns the URL of the runtime to connect to.setConnectionToken(String connectionToken) Sets the shared secret used to authenticate the connection.Methods inherited from class RuntimeConnection
forInProcess, forStdio, forStdio, forTcp, forUri
-
Method Details
-
getUrl
Returns the URL of the runtime to connect to.- Returns:
- the URL; accepts
"port","host:port", or a full URL
-
getConnectionToken
Returns the shared secret used to authenticate the connection.- Returns:
- the token, or
nullif the runtime does not require one
-
setConnectionToken
Sets the shared secret used to authenticate the connection.- Parameters:
connectionToken- the token, ornullif the runtime does not require one- Returns:
- this instance for method chaining
-