Package com.vaadin.copilot
Class CopilotServerClient
java.lang.Object
com.vaadin.copilot.CopilotServerClient
- Direct Known Subclasses:
AICommandHandler,AnalyticsClient,FeedbackClient,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 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
-
getLogger
protected org.slf4j.Logger getLogger()
-