public abstract class AbstractOAuthAdapterGenerator extends Object implements ModuleGenerator
Constructor and Description |
---|
AbstractOAuthAdapterGenerator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generate, shouldGenerate
protected static final String REQUEST_TOKEN_FIELD_NAME
protected static final String REQUEST_TOKEN_SECRET_FIELD_NAME
protected static final String CONSUMER_FIELD_NAME
public static final String VERIFIER_FIELD_NAME
public static final String HAS_TOKEN_EXPIRED_METHOD_NAME
public static final String RESET_METHOD_NAME
public static final String AUTHORIZE_METHOD_NAME
public static final String FETCH_ACCESS_TOKEN_METHOD_NAME
public static final String OAUTH_VERIFIER_FIELD_NAME
public static final String REFRESH_TOKEN_FIELD_NAME
public static final String REFRESH_TOKEN_PATTERN_FIELD_NAME
public static final String ON_NO_TOKEN_POLICY_FIELD_NAME
protected static final String ENCODING
protected static final String GRANT_TYPE
protected static final String ACCESS_CODE_PATTERN_FIELD_NAME
protected static final String AUTH_CODE_PATTERN_FIELD_NAME
protected static final String EXPIRATION_TIME_PATTERN_FIELD_NAME
protected static final String EXPIRATION_FIELD_NAME
protected static final String MULE_CONTEXT_FIELD_NAME
public static final String OAUTH_SAVE_ACCESS_TOKEN_CALLBACK_FIELD_NAME
public static final String OAUTH_RESTORE_ACCESS_TOKEN_CALLBACK_FIELD_NAME
protected Context context
protected TypeReference ref(Class<?> clazz)
protected Type ref(TypeMirror typeMirror)
protected void generateOnNoTokenPolicyField(GeneratedClass oauthAdapter)
protected GeneratedMethod generateCreateConsumerMethod(GeneratedClass oauthAdapter, OAuth oauth, Module module)
protected GeneratedClass getOAuthAdapterClass(Module module, String classSuffix, TypeReference interf)
protected GeneratedField authorizationCodeField(GeneratedClass oauthAdapter)
protected GeneratedField saveAccessTokenCallbackField(GeneratedClass oauthAdapter)
protected GeneratedField restoreAccessTokenCallbackField(GeneratedClass oauthAdapter)
protected GeneratedMethod generateInitialiseMethod(GeneratedClass oauthAdapter)
protected void muleContextField(GeneratedClass oauthAdapter)
protected void generateHasBeenAuthorizedMethod(OAuthModule module, GeneratedClass oauthAdapter)
protected String getterMethodForFieldAnnotatedWith(Module module, Class<? extends Annotation> annotation)
protected GeneratedField generateLoggerField(GeneratedClass clazz)
protected GeneratedField generateFieldForMessageProcessor(GeneratedClass messageProcessorClass, String name)
protected GeneratedField generateFieldForBoolean(GeneratedClass messageProcessorClass, String name)
protected GeneratedField generateFieldForString(GeneratedClass messageProcessorClass, String name)
protected void generateOAuth2AuthorizeMethod(GeneratedClass oauthAdapter, GeneratedField oauthManager)
protected void generateOAuth1AuthorizeMethod(GeneratedClass oauthAdapter, GeneratedField oauthManager)
protected GeneratedVariable generateProvider(GeneratedVariable requestTokenUrl, GeneratedVariable accessTokenUrl, GeneratedVariable authorizationUrl, GeneratedBlock block, Module module)
protected void generateCatchAndReThrow(GeneratedTry tryStatement, Class<? extends Exception> exceptionToCatch, Class<? extends Exception> exceptionToThrow)
protected void generateCatchAndReThrow(GeneratedTry tryStatement, Class<? extends Exception> exceptionToCatch, TypeReference exceptionToThrow)
protected GeneratedField generateAuthorizationUrlField(GeneratedClass generatedClass)
protected GeneratedField generateAccessTokenUrlField(GeneratedClass generatedClass)
protected GeneratedField generateRequestTokenUrlField(GeneratedClass generatedClass)
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.