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