Package com.adaptris.interlok.azure
Class AzureConnection<C>
java.lang.Object
com.adaptris.core.AdaptrisConnectionImp
com.adaptris.interlok.azure.AzureConnection<C>
- All Implemented Interfaces:
AdaptrisComponent,AdaptrisConnection,ComponentLifecycle,ComponentLifecycleExtension,StateManagedComponent
- Direct Known Subclasses:
DataLakeConnection,GraphAPIConnection
@ComponentProfile(summary="Connect to an Azure tenant",
tag="connections,azure")
public abstract class AzureConnection<C>
extends AdaptrisConnectionImp
Base Azure connection.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @NotBlank StringThe ID of the Azure application.protected @NotBlank StringThe application client secret.protected @NotBlank StringThe tenant ID.Fields inherited from class com.adaptris.core.AdaptrisConnectionImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected voidClose the underlying connection.The ID of the Azure application.abstract CThe application client secret.The tenant ID.protected void.voidsetApplicationId(String applicationId) The ID of the Azure application.voidsetClientSecret(String clientSecret) The application client secret.voidsetTenantId(String tenantId) The tenant ID.protected void.Methods inherited from class com.adaptris.core.AdaptrisConnectionImp
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, connectionErrorHandler, getConnectionErrorHandler, getUniqueId, getWorkersFirstOnShutdown, init, initConnection, prepare, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setUniqueId, setWorkersFirstOnShutdown, start, startConnection, stop, workersFirstOnShutdown
-
Field Details
-
applicationId
The ID of the Azure application. -
tenantId
The tenant ID. -
clientSecret
The application client secret.
-
-
Constructor Details
-
AzureConnection
public AzureConnection()
-
-
Method Details
-
getClientConnection
-
prepareConnection
protected void prepareConnection().- Specified by:
prepareConnectionin classAdaptrisConnectionImp
-
stopConnection
protected void stopConnection().- Specified by:
stopConnectionin classAdaptrisConnectionImp
-
closeConnection
protected void closeConnection()Close the underlying connection.- Specified by:
closeConnectionin classAdaptrisConnectionImp
-
clientSecret
-
getApplicationId
The ID of the Azure application. -
setApplicationId
The ID of the Azure application. -
getTenantId
The tenant ID. -
setTenantId
The tenant ID. -
getClientSecret
The application client secret. -
setClientSecret
The application client secret.
-