public class OAuthConnectionProviderWrapper<C> extends ReconnectableConnectionProviderWrapper<C> implements 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,
boolean disableValidation,
RetryPolicyTemplate retryPolicyTemplate) |
| Modifier and Type | Method and Description |
|---|---|
C |
connect() |
String |
getResourceOwnerId() |
void |
start() |
void |
updateAuthState() |
getRetryPolicyTemplate, validatedisconnect, dispose, getDelegate, getPoolingProfile, initialise, stop, unwrapProviderWrapperpublic OAuthConnectionProviderWrapper(org.mule.runtime.api.connection.ConnectionProvider<C> delegate, OAuthConfig oauthConfig, Map<Field,String> callbackValues, ExtensionsOAuthManager oauthManager, boolean disableValidation, RetryPolicyTemplate retryPolicyTemplate)
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.