Package com.vaadin.copilot
Class CopilotServerClient
java.lang.Object
com.vaadin.copilot.CopilotServerClient
- Direct Known Subclasses:
AICommandHandler,AnalyticsClient,ErrorHandler,FeedbackClient,PreviewHandler,TestGenerationServerClient,UserInfoServerClient
Base class for Copilot Server API clients
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpRequestbuildRequest(URI uri, String json) protected HttpClientprotected org.slf4j.Loggerprotected URIgetQueryURI(String path) protected Stringprotected <T> Tprotected reactor.core.DisposablesendReactive(String path, String json) protected StringwriteAsJsonString(Object obj)
-
Field Details
-
SERVER_URL_ENV
- See Also:
-
-
Constructor Details
-
CopilotServerClient
public CopilotServerClient()Constructor initializing HttpClient and ObjectMapper
-
-
Method Details
-
getHttpClient
-
buildRequest
-
writeAsJsonString
-
readValue
-
getQueryURI
-
getServerBaseUrl
-
sendReactive
-
getLogger
protected org.slf4j.Logger getLogger()
-