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(Module module) |
boolean |
shouldGenerate(Module module) |
authorizationCodeField, consumes, ctx, generateAccessTokenUrlField, generateAuthorizationUrlField, generateCatchAndReThrow, generateCatchAndReThrow, generateCreateConsumerMethod, generateFieldForBoolean, generateFieldForMessageProcessor, generateFieldForString, generateHasBeenAuthorizedMethod, generateInitialiseMethod, generateLoggerField, generateOAuth1AuthorizeMethod, generateOAuth2AuthorizeMethod, generateOnNoTokenPolicyField, generateProvider, generateRequestTokenUrlField, getOAuthAdapterClass, getterMethodForFieldAnnotatedWith, muleContextField, produces, ref, ref, ref, ref, restoreAccessTokenCallbackField, saveAccessTokenCallbackField, setCtx
public boolean shouldGenerate(Module module)
public void generate(Module module) throws GenerationException
GenerationException
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.