tock / ai.tock.bot.connector / ConnectorProvider

# ConnectorProvider

`interface ConnectorProvider` (source)

To provide a new Connector from a ConnectorConfiguration. The implementation is loaded at runtime to list all available connectors, using the java java.util.ServiceLoader

- you need to provide a META-INF/services/ai.tock.bot.connector.ConnectorProvider file.

### Properties

#### connectorType | The connector type provided `abstract val connectorType: ConnectorType`
#### supportedResponseConnectorMessageTypes | The supported connector messages - used to check the authorized messages. `open val supportedResponseConnectorMessageTypes: Set<KClass<out ConnectorMessage>>`

### Functions

#### check | Checks the connector configuration. `open fun check(connectorConfiguration: ConnectorConfiguration): List<String>`
#### configuration | Describes the configuration parameters of the connectorType. `open fun configuration(): ConnectorTypeConfiguration`
#### connector | Provides a new Connector instance from the specified ConnectorConfiguration. `abstract fun connector(connectorConfiguration: ConnectorConfiguration): Connector`
#### createRequestFilter | Creates a RequestFilter from the current configuration. `open fun createRequestFilter(connectorConfiguration: ConnectorConfiguration): RequestFilter`