public abstract class AbstractOAuth2ManagerGenerator extends AbstractOAuthManagerGenerator
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 |
|---|
AbstractOAuth2ManagerGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
doGenerate(org.mule.devkit.model.module.Module module,
org.mule.devkit.model.code.GeneratedClass oAuthManagerClass)
Hook method to implement the custom core behaviour of the manager anything the concrete object to generate the adapter (either for OAuth1 or OAuth2)
|
protected AbstractOAuthAdapterGenerator |
getAdapterGenerator()
Returns the concrete object to generate the adapter (either for OAuth1 or OAuth2)
TODO: It must be refactored to avoid calling a generator from another generator, but this will imply adding more dependencies in the CONSUMES/PRODUCES mechanism
|
protected abstract List<org.mule.devkit.model.Field> |
getConfigurableFields(org.mule.devkit.model.module.Module module)
Returns the list of configurable fields that the generated manager must wrap when being filled from the definition parser.
|
protected org.mule.devkit.model.code.TypeReference |
getExtendManagerClass()
Returns the concrete class to be used a superclass of the generated Manager (either for OAuth1 or OAuth2)
|
protected abstract org.mule.devkit.model.module.oauth.OAuthCapability |
getOAuthCapability(org.mule.devkit.model.module.Module module)
Given a module, returns the concrete object that represents the
OAuth2 annotation |
protected OAuthClientFactoryGenerator |
getOAuthFactoryGenerator()
Returns a factory generator to fulfil the
BaseOAuthClientFactory extends contract |
protected abstract org.mule.devkit.model.code.GeneratedExpression |
wrapAccessorConnector(org.mule.devkit.model.module.Module module,
org.mule.devkit.model.Field field,
org.mule.devkit.model.code.GeneratedExpression connector)
Wraps the connector to the custom strategy if applies.
|
callGenerator, consumes, generate, generateLoggerMethod, producesauthorizationCodeField, ctx, generateAccessTokenUrlField, generateAuthorizationUrlField, generateCatchAndReThrow, generateCatchAndReThrow, generateHasBeenAuthorizedMethod, generateInitialiseMethod, generateLoggerField, generateOAuth1AuthorizeMethod, generateOAuth2AuthorizeMethod, generateOnNoTokenPolicyField, generateRequestTokenUrlField, getOAuthAdapterClass, ref, ref, ref, ref, restoreAccessTokenCallbackField, saveAccessTokenCallbackField, setCtxclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshouldGenerateprotected org.mule.devkit.model.code.TypeReference getExtendManagerClass()
AbstractOAuthManagerGeneratorgetExtendManagerClass in class AbstractOAuthManagerGeneratorprotected AbstractOAuthAdapterGenerator getAdapterGenerator()
AbstractOAuthManagerGeneratorgetAdapterGenerator in class AbstractOAuthManagerGeneratorpublic void doGenerate(org.mule.devkit.model.module.Module module, org.mule.devkit.model.code.GeneratedClass oAuthManagerClass) throws GenerationException
AbstractOAuthManagerGeneratordoGenerate in class AbstractOAuthManagerGeneratorGenerationExceptionprotected abstract org.mule.devkit.model.module.oauth.OAuthCapability getOAuthCapability(org.mule.devkit.model.module.Module module)
OAuth2 annotationprotected abstract org.mule.devkit.model.code.GeneratedExpression wrapAccessorConnector(org.mule.devkit.model.module.Module module, org.mule.devkit.model.Field field, org.mule.devkit.model.code.GeneratedExpression connector)
module - field - connector - protected abstract List<org.mule.devkit.model.Field> getConfigurableFields(org.mule.devkit.model.module.Module module)
module - protected OAuthClientFactoryGenerator getOAuthFactoryGenerator()
BaseOAuthClientFactory extends contractCopyright © 2010–2021 MuleSoft, Inc.. All rights reserved.