Class PutConnectorPluginConfigValidate
java.lang.Object
org.sourcelab.kafka.connect.apiclient.request.put.PutConnectorPluginConfigValidate
- All Implemented Interfaces:
PutRequest<ConnectorPluginConfigValidationResults>,Request<ConnectorPluginConfigValidationResults>
public final class PutConnectorPluginConfigValidate
extends Object
implements PutRequest<ConnectorPluginConfigValidationResults>
Defines request to validate a connector plugin's configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionPutConnectorPluginConfigValidate(String connectorPluginName, Map<String, String> config) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionThe name of the API end point to issue a request against.Object to be submitted as the body of the request.parseResponse(String responseStr) Parse the rest service's response into a concrete object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.sourcelab.kafka.connect.apiclient.request.put.PutRequest
getRequestMethod
-
Constructor Details
-
PutConnectorPluginConfigValidate
Constructor.- Parameters:
connectorPluginName- Name of the class for the connector plugin.config- Configuration entries to validate.
-
-
Method Details
-
getApiEndpoint
Description copied from interface:RequestThe name of the API end point to issue a request against. This is appended to the API Hostname.- Specified by:
getApiEndpointin interfaceRequest<ConnectorPluginConfigValidationResults>- Returns:
- The name of the end point this request uses.
-
getRequestBody
Description copied from interface:RequestObject to be submitted as the body of the request. It will be serialized to JSON using Jackson.- Specified by:
getRequestBodyin interfaceRequest<ConnectorPluginConfigValidationResults>- Returns:
- Object representing request body content.
-
parseResponse
Description copied from interface:RequestParse the rest service's response into a concrete object.- Specified by:
parseResponsein interfaceRequest<ConnectorPluginConfigValidationResults>- Parameters:
responseStr- The servers response in string format.- Returns:
- A concrete object representing the result.
- Throws:
IOException- on parsing errors.
-