Package com.vaadin.copilot
Class CopilotServerClient
java.lang.Object
com.vaadin.copilot.CopilotServerClient
- Direct Known Subclasses:
AnalyticsClient,FeedbackClient,TestGenerationServerClient,UserInfoServerClient
Base class for Copilot Server API clients
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildRequest(URI uri, String json) getQueryURI(String path) protected static String<T> T<REQ,RESP>
voidsendCopilotRequest(String path, REQ request, Class<RESP> responseType, Consumer<RESP> responseHandler, com.vaadin.base.devserver.DevToolsInterface devToolsInterface, String command, elemental.json.JsonObject respData) reactor.core.DisposablesendReactive(String path, String json) 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
-
sendCopilotRequest
-
sendReactive
-