Class GetConnectorConfig

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

public final class GetConnectorConfig extends Object implements GetRequest<Map<String,String>>
Defines a request for getting the configuration for a connector.
  • Constructor Details

    • GetConnectorConfig

      public GetConnectorConfig(String connectorName)
      Constructor.
      Parameters:
      connectorName - Name of the connector.
  • 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<Map<String,String>>
      Returns:
      The name of the end point this request uses.
    • parseResponse

      public Map<String,String> 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<Map<String,String>>
      Parameters:
      responseStr - The servers response in string format.
      Returns:
      A concrete object representing the result.
      Throws:
      IOException - on parsing errors.