Package com.adaptris.interlok.azure
Class GraphAPIConnection
- java.lang.Object
-
- com.adaptris.core.AdaptrisConnectionImp
-
- com.adaptris.interlok.azure.AzureConnection<com.microsoft.graph.models.extensions.IGraphServiceClient>
-
- com.adaptris.interlok.azure.GraphAPIConnection
-
- All Implemented Interfaces:
AdaptrisComponent,AdaptrisConnection,ComponentLifecycle,ComponentLifecycleExtension,StateManagedComponent
@ComponentProfile(summary="Connect to an Azure tenant and access the Graph API", tag="connections,azure,graph api,graph") public class GraphAPIConnection extends AzureConnection<com.microsoft.graph.models.extensions.IGraphServiceClient>Azure connection to use the Graph API.
-
-
Field Summary
-
Fields inherited from class com.adaptris.interlok.azure.AzureConnection
applicationId, clientSecret, tenantId
-
Fields inherited from class com.adaptris.core.AdaptrisConnectionImp
log
-
-
Constructor Summary
Constructors Constructor Description GraphAPIConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.microsoft.graph.models.extensions.IGraphServiceClientgetClientConnection()protected voidinitConnection()Initialise the underlying connection.protected voidstartConnection()Start the underlying connection.-
Methods inherited from class com.adaptris.interlok.azure.AzureConnection
clientSecret, closeConnection, getApplicationId, getClientSecret, getTenantId, prepareConnection, setApplicationId, setClientSecret, setTenantId, stopConnection, tenant
-
Methods inherited from class com.adaptris.core.AdaptrisConnectionImp
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, connectionErrorHandler, getConnectionErrorHandler, getUniqueId, getWorkersFirstOnShutdown, init, prepare, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setUniqueId, setWorkersFirstOnShutdown, start, stop, workersFirstOnShutdown
-
-
-
-
Method Detail
-
initConnection
protected void initConnection() throws CoreExceptionInitialise the underlying connection.- Specified by:
initConnectionin classAdaptrisConnectionImp- Throws:
CoreException- wrapping any exception.
-
startConnection
protected void startConnection() throws CoreExceptionStart the underlying connection.- Specified by:
startConnectionin classAdaptrisConnectionImp- Throws:
CoreException- wrapping any exception.
-
getClientConnection
public com.microsoft.graph.models.extensions.IGraphServiceClient getClientConnection()
- Specified by:
getClientConnectionin classAzureConnection<com.microsoft.graph.models.extensions.IGraphServiceClient>
-
-