We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.copilot.
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 HttpRequest
buildRequest
(URI uri, String json) protected HttpClient
protected org.slf4j.Logger
protected URI
getQueryURI
(String path) protected String
protected <T> T
protected String
writeAsJsonString
(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()
-