Class GetConnectServerVersion

java.lang.Object
org.sourcelab.kafka.connect.apiclient.request.get.GetConnectServerVersion
All Implemented Interfaces:
GetRequest<ConnectServerVersion>, Request<ConnectServerVersion>

public class GetConnectServerVersion extends Object implements GetRequest<ConnectServerVersion>
Defines a request for getting details about the Kafka-Connect service being queried.
  • Constructor Details

    • GetConnectServerVersion

      public GetConnectServerVersion()
  • Method Details

    • getApiEndpoint

      public String getApiEndpoint()
      Description copied from interface: Request
      The name of the API end point to issue a request against. This is appended to the API Hostname.
      Specified by:
      getApiEndpoint in interface Request<ConnectServerVersion>
      Returns:
      The name of the end point this request uses.
    • parseResponse

      public ConnectServerVersion parseResponse(String responseStr) throws IOException
      Description copied from interface: Request
      Parse the rest service's response into a concrete object.
      Specified by:
      parseResponse in interface Request<ConnectServerVersion>
      Parameters:
      responseStr - The servers response in string format.
      Returns:
      A concrete object representing the result.
      Throws:
      IOException - on parsing errors.