public class ConnectorConfiguration
Configuration parameters used by a interface ConnectorProvider to create a new interface Connector instance.
interface ConnectorProvider,
interface Connectorpublic static ai.tock.bot.connector.ConnectorConfiguration.Companion Companion
public ConnectorConfiguration(@NotNull
java.lang.String connectorId,
@NotNull
java.lang.String path,
@NotNull
ConnectorType type,
@Nullable
ConnectorType ownerConnectorType,
@NotNull
java.util.Map<java.lang.String,java.lang.String> parameters)
Configuration parameters used by a interface ConnectorProvider to create a new interface Connector instance.
connectorId - The connector id - unique for a given bot.path - The relative REST path of the connector.type - The connector type.ownerConnectorType - The underlying connector type. For example, you can have connectorType=rest and ownerConnectorType=messenger.parameters - Additional parameters for this connector.interface ConnectorProvider,
interface Connectorpublic ConnectorConfiguration(@NotNull
java.lang.String connectorId,
@NotNull
java.lang.String path,
@NotNull
ConnectorType type,
@NotNull
java.lang.String applicationName,
@Nullable
java.lang.String baseUrl,
@Nullable
ConnectorType ownerConnectorType,
@NotNull
java.util.Map<java.lang.String,java.lang.String> parameters)
@NotNull public java.lang.String getName()
The name of application.
@NotNull public java.lang.String getBaseUrl()
The base url of the connector.
@NotNull public java.lang.String getConnectorId()
The connector id
- unique for a given bot.
@NotNull public java.lang.String getPath()
The relative REST path of the connector.
@NotNull public ConnectorType getType()
The connector type.
@Nullable public ConnectorType getOwnerConnectorType()
The underlying connector type.
For example, you can have connectorType=rest and ownerConnectorType=messenger.
@NotNull public java.util.Map<java.lang.String,java.lang.String> getParameters()
Additional parameters for this connector.
@NotNull public java.lang.String component1()
The connector id
- unique for a given bot.
@NotNull public java.lang.String component2()
The relative REST path of the connector.
@NotNull public ConnectorType component3()
The connector type.
@Nullable public ConnectorType component4()
The underlying connector type.
For example, you can have connectorType=rest and ownerConnectorType=messenger.
@NotNull public java.util.Map<java.lang.String,java.lang.String> component5()
Additional parameters for this connector.
@NotNull public ConnectorConfiguration copy(@NotNull java.lang.String connectorId, @NotNull java.lang.String path, @NotNull ConnectorType type, @Nullable ConnectorType ownerConnectorType, @NotNull java.util.Map<java.lang.String,java.lang.String> parameters)
Configuration parameters used by a interface ConnectorProvider to create a new interface Connector instance.
interface ConnectorProvider,
interface Connector@NotNull public java.lang.String toString()
Configuration parameters used by a interface ConnectorProvider to create a new interface Connector instance.
interface ConnectorProvider,
interface Connectorpublic int hashCode()
Configuration parameters used by a interface ConnectorProvider to create a new interface Connector instance.
interface ConnectorProvider,
interface Connectorpublic boolean equals(@Nullable
java.lang.Object p)
Configuration parameters used by a interface ConnectorProvider to create a new interface Connector instance.
interface ConnectorProvider,
interface Connector