public class OAuthClientFactoryGenerator extends AbstractOAuthAdapterGenerator
generate(org.mule.devkit.model.module.Module) method when looks for adapter and manager classes) .
As the time of writing this javadoc, this generator could be called when using @OAuth2 annotation with the @Connector,
or when using @OAuth2 annotation in a different component (check the calls to OAuth2StrategyUtilsResolver object).ACCESS_CODE_PATTERN_FIELD_NAME, AUTH_CODE_PATTERN_FIELD_NAME, AUTHORIZE_METHOD_NAME, CONSUMER_FIELD_NAME, context, ENCODING, EXPIRATION_FIELD_NAME, EXPIRATION_TIME_PATTERN_FIELD_NAME, FETCH_ACCESS_TOKEN_METHOD_NAME, GRANT_TYPE, HAS_TOKEN_EXPIRED_METHOD_NAME, MULE_CONTEXT_FIELD_NAME, OAUTH_RESTORE_ACCESS_TOKEN_CALLBACK_FIELD_NAME, OAUTH_SAVE_ACCESS_TOKEN_CALLBACK_FIELD_NAME, OAUTH_VERIFIER_FIELD_NAME, ON_NO_TOKEN_POLICY_FIELD_NAME, REFRESH_TOKEN_FIELD_NAME, REFRESH_TOKEN_PATTERN_FIELD_NAME, REQUEST_TOKEN_FIELD_NAME, REQUEST_TOKEN_SECRET_FIELD_NAME, RESET_METHOD_NAME, VERIFIER_FIELD_NAME| Constructor and Description |
|---|
OAuthClientFactoryGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(org.mule.devkit.model.module.Module module) |
boolean |
shouldGenerate(org.mule.devkit.model.module.Module module) |
authorizationCodeField, consumes, ctx, generateAccessTokenUrlField, generateAuthorizationUrlField, generateCatchAndReThrow, generateCatchAndReThrow, generateHasBeenAuthorizedMethod, generateInitialiseMethod, generateLoggerField, generateOAuth1AuthorizeMethod, generateOAuth2AuthorizeMethod, generateOnNoTokenPolicyField, generateRequestTokenUrlField, getOAuthAdapterClass, produces, ref, ref, ref, ref, restoreAccessTokenCallbackField, saveAccessTokenCallbackField, setCtxpublic boolean shouldGenerate(org.mule.devkit.model.module.Module module)
public void generate(org.mule.devkit.model.module.Module module) throws GenerationException
GenerationExceptionCopyright © 2010–2020 MuleSoft, Inc.. All rights reserved.