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, Object request)
    • 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, tools.jackson.databind.JsonNode respData)
    • sendCopilotRequest

      public <REQ, RESP> void sendCopilotRequest(String path, REQ request, Class<RESP> responseType, Consumer<RESP> responseHandler, Consumer<Throwable> errorHandler)
    • sendReactive

      public reactor.core.Disposable sendReactive(String path, Object request)