Package ai.tock.bot.connector
Class ConnectorConfiguration
-
- All Implemented Interfaces:
public final class ConnectorConfigurationConfiguration parameters used by a ConnectorProvider to create a new Connector instance.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringconnectorIdprivate final Stringpathprivate final ConnectorTypetypeprivate final ConnectorTypeownerConnectorTypeprivate final Map<String, String>parameters
-
Constructor Summary
Constructors Constructor Description ConnectorConfiguration(String connectorId, String path, ConnectorType type, String applicationName, String baseUrl, ConnectorType ownerConnectorType, Map<String, String> parameters)ConnectorConfiguration(String connectorId, String path, ConnectorType type, ConnectorType ownerConnectorType, Map<String, String> parameters)
-
Method Summary
Modifier and Type Method Description final StringgetConnectorId()The connector id - unique for a given bot. final StringgetPath()The relative REST path of the connector. final ConnectorTypegetType()The connector type. final ConnectorTypegetOwnerConnectorType()The underlying connector type. final Map<String, String>getParameters()Additional parameters for this connector. final StringgetName()The name of application. final StringgetBaseUrl()The base url of the connector. -
-
Constructor Detail
-
ConnectorConfiguration
ConnectorConfiguration(String connectorId, String path, ConnectorType type, String applicationName, String baseUrl, ConnectorType ownerConnectorType, Map<String, String> parameters)
-
ConnectorConfiguration
ConnectorConfiguration(String connectorId, String path, ConnectorType type, ConnectorType ownerConnectorType, Map<String, String> parameters)
-
-
Method Detail
-
getConnectorId
final String getConnectorId()
The connector id - unique for a given bot.
-
getType
final ConnectorType getType()
The connector type.
-
getOwnerConnectorType
final ConnectorType getOwnerConnectorType()
The underlying connector type. For example, you can have connectorType=rest and ownerConnectorType=messenger.
-
getParameters
final Map<String, String> getParameters()
Additional parameters for this connector.
-
getBaseUrl
final String getBaseUrl()
The base url of the connector.
-
-
-
-