public class OAuthConnectionProviderWrapper<C> extends ReconnectableConnectionProviderWrapper<C> implements org.mule.runtime.extension.api.connectivity.NoConnectivityTest
ReconnectableConnectionProviderWrapper which makes sure that by the time the
ConnectionProvider.connect() method is invoked on the delegate, the authorization dance has
been completed and the AuthorizationCodeState and OAuthCallbackValue fields have
been properly injectedmuleContext| Constructor and Description |
|---|
OAuthConnectionProviderWrapper(org.mule.runtime.api.connection.ConnectionProvider<C> delegate,
OAuthConfig oauthConfig,
Map<Field,String> callbackValues,
ExtensionsOAuthManager oauthManager,
ReconnectionConfig reconnectionConfig) |
| Modifier and Type | Method and Description |
|---|---|
C |
connect() |
String |
getResourceOwnerId() |
void |
start() |
void |
updateAuthState() |
getReconnectionConfig, validatedisconnect, dispose, getDelegate, getPoolingProfile, getRetryPolicyTemplate, initialise, stoppublic OAuthConnectionProviderWrapper(org.mule.runtime.api.connection.ConnectionProvider<C> delegate, OAuthConfig oauthConfig, Map<Field,String> callbackValues, ExtensionsOAuthManager oauthManager, ReconnectionConfig reconnectionConfig)
public C connect() throws org.mule.runtime.api.connection.ConnectionException
connect in interface org.mule.runtime.api.connection.ConnectionProvider<C>connect in class ConnectionProviderWrapper<C>org.mule.runtime.api.connection.ConnectionExceptionpublic void updateAuthState()
public String getResourceOwnerId()
public void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startablestart in class ConnectionProviderWrapper<C>org.mule.runtime.api.exception.MuleExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.