Class CopilotServerClient

java.lang.Object
com.vaadin.copilot.CopilotServerClient
Direct Known Subclasses:
AnalyticsClient, FeedbackClient, TestGenerationServerClient, UserInfoServerClient

public class CopilotServerClient extends Object
Base class for Copilot Server API clients
  • Field Details

  • Constructor Details

    • CopilotServerClient

      public CopilotServerClient()
      Constructor initializing HttpClient and ObjectMapper
  • Method Details

    • getHttpClient

      public HttpClient getHttpClient()
    • buildRequest

      public HttpRequest buildRequest(URI uri, String json)
    • writeAsJsonString

      public String writeAsJsonString(Object obj)
    • readValue

      public <T> T readValue(String string, Class<T> clazz)
    • getQueryURI

      public URI getQueryURI(String path)
    • getServerBaseUrl

      protected static String getServerBaseUrl()
    • sendCopilotRequest

      public <REQ, RESP> void sendCopilotRequest(String path, REQ request, Class<RESP> responseType, Consumer<RESP> responseHandler, com.vaadin.base.devserver.DevToolsInterface devToolsInterface, String command, elemental.json.JsonObject respData)
    • sendReactive

      public reactor.core.Disposable sendReactive(String path, String json)