public class OAuth2ManagerComponentGenerator extends AbstractOAuth2ManagerGenerator
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 |
---|
OAuth2ManagerComponentGenerator() |
Modifier and Type | Method and Description |
---|---|
protected List<Field> |
getConfigurableFields(Module module)
Returns the list of configurable fields that the generated manager must wrap when being filled from the definition parser.
|
protected OAuthCapability |
getOAuthCapability(Module module)
Given a module, returns the concrete object that represents the
OAuth2 annotation |
boolean |
shouldGenerate(Module module) |
protected GeneratedExpression |
wrapAccessorConnector(Module module,
Field field,
GeneratedExpression connector)
Wraps the connector to the custom strategy if applies.
|
doGenerate, getAdapterGenerator, getExtendManagerClass, getOAuthFactoryGenerator
callGenerator, consumes, generate, generateLoggerMethod, produces
authorizationCodeField, ctx, generateAccessTokenUrlField, generateAuthorizationUrlField, generateCatchAndReThrow, generateCatchAndReThrow, generateCreateConsumerMethod, generateFieldForBoolean, generateFieldForMessageProcessor, generateFieldForString, generateHasBeenAuthorizedMethod, generateInitialiseMethod, generateLoggerField, generateOAuth1AuthorizeMethod, generateOAuth2AuthorizeMethod, generateOnNoTokenPolicyField, generateProvider, generateRequestTokenUrlField, getOAuthAdapterClass, getterMethodForFieldAnnotatedWith, muleContextField, ref, ref, ref, ref, restoreAccessTokenCallbackField, saveAccessTokenCallbackField, setCtx
public boolean shouldGenerate(Module module)
protected OAuthCapability getOAuthCapability(Module module)
AbstractOAuth2ManagerGenerator
OAuth2
annotationgetOAuthCapability
in class AbstractOAuth2ManagerGenerator
protected GeneratedExpression wrapAccessorConnector(Module module, Field field, GeneratedExpression connector)
AbstractOAuth2ManagerGenerator
wrapAccessorConnector
in class AbstractOAuth2ManagerGenerator
protected List<Field> getConfigurableFields(Module module)
AbstractOAuth2ManagerGenerator
getConfigurableFields
in class AbstractOAuth2ManagerGenerator
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.