You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.copilot.

Class CopilotServerClient

java.lang.Object
com.vaadin.copilot.CopilotServerClient

Direct Known Subclasses:

AICommandHandler, AnalyticsClient, FeedbackClient, 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

      protected HttpClient getHttpClient()
    • buildRequest

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

      protected String writeAsJsonString(Object obj)
    • readValue

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

      protected URI getQueryURI(String path)
    • getServerBaseUrl

      protected String getServerBaseUrl()
    • getLogger

      protected org.slf4j.Logger getLogger()