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 AdaptrisConnectionImpBase Azure connection.
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotBlank java.lang.StringapplicationIdThe ID of the Azure application.protected @NotBlank java.lang.StringclientSecretThe application client secret.protected @NotBlank java.lang.StringtenantIdThe tenant ID.-
Fields inherited from class com.adaptris.core.AdaptrisConnectionImp
log
-
-
Constructor Summary
Constructors Constructor Description AzureConnection()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringclientSecret()protected voidcloseConnection()Close the underlying connection.java.lang.StringgetApplicationId()The ID of the Azure application.abstract CgetClientConnection()java.lang.StringgetClientSecret()The application client secret.java.lang.StringgetTenantId()The tenant ID.protected voidprepareConnection().voidsetApplicationId(java.lang.String applicationId)The ID of the Azure application.voidsetClientSecret(java.lang.String clientSecret)The application client secret.voidsetTenantId(java.lang.String tenantId)The tenant ID.protected voidstopConnection().protected java.lang.Stringtenant()-
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 Detail
-
applicationId
@NotBlank protected @NotBlank java.lang.String applicationId
The ID of the Azure application.
-
tenantId
@NotBlank protected @NotBlank java.lang.String tenantId
The tenant ID.
-
clientSecret
@NotBlank protected @NotBlank java.lang.String clientSecret
The application client secret.
-
-
Method Detail
-
getClientConnection
public abstract C 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
-
tenant
protected java.lang.String tenant()
-
clientSecret
protected java.lang.String clientSecret()
-
getApplicationId
public java.lang.String getApplicationId()
The ID of the Azure application.
-
setApplicationId
public void setApplicationId(java.lang.String applicationId)
The ID of the Azure application.
-
getTenantId
public java.lang.String getTenantId()
The tenant ID.
-
setTenantId
public void setTenantId(java.lang.String tenantId)
The tenant ID.
-
getClientSecret
public java.lang.String getClientSecret()
The application client secret.
-
setClientSecret
public void setClientSecret(java.lang.String clientSecret)
The application client secret.
-
-