org.mule.security.oauth.processor
Class BaseOAuth2AuthorizeMessageProcessor<T extends OAuth2Manager<OAuth2Adapter>>

java.lang.Object
  extended by org.mule.devkit.processor.ExpressionEvaluatorSupport
      extended by org.mule.devkit.processor.DevkitBasedMessageProcessor
          extended by org.mule.security.oauth.processor.AbstractAuthorizeMessageProcessor
              extended by org.mule.security.oauth.processor.BaseOAuth2AuthorizeMessageProcessor<T>
All Implemented Interfaces:
FlowConstructAware, MuleContextAware, Disposable, Initialisable, Startable, Stoppable, InterceptingMessageProcessor, MessageProcessor, MessageSource

public abstract class BaseOAuth2AuthorizeMessageProcessor<T extends OAuth2Manager<OAuth2Adapter>>
extends AbstractAuthorizeMessageProcessor


Field Summary
 
Fields inherited from class org.mule.devkit.processor.DevkitBasedMessageProcessor
flowConstruct, moduleObject, muleContext
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
BaseOAuth2AuthorizeMessageProcessor()
           
 
Method Summary
protected  MuleEvent doProcess(MuleEvent event)
          Starts the OAuth authorization process
protected  OAuth2Manager<OAuth2Adapter> getOAuthManager()
           
protected abstract  Class<T> getOAuthManagerClass()
           
 void start()
           
 
Methods inherited from class org.mule.security.oauth.processor.AbstractAuthorizeMessageProcessor
getAccessTokenUrl, getAuthCodeRegex, getAuthorizationUrl, getListener, getOauthCallback, getState, notifyAuthorizeStart, setAccessTokenUrl, setAuthorizationUrl, setCallbackFactory, setListener, setOauthCallback, setState, startCallback, stop, toString
 
Methods inherited from class org.mule.devkit.processor.DevkitBasedMessageProcessor
dispose, findOrCreate, getAccessTokenId, getFlowConstruct, getMuleContext, initialise, overwritePayload, process, setAccessTokenId, setFlowConstruct, setModuleObject, setMuleContext
 
Methods inherited from class org.mule.devkit.processor.ExpressionEvaluatorSupport
computeClassHierarchy, evaluate, evaluateAndTransform, evaluateAndTransform, getAccessTokenId, isAssignableFrom, isList, isListClass, isMap, isMapClass, transform, transform, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mule.api.construct.FlowConstructAware
setFlowConstruct
 
Methods inherited from interface org.mule.api.context.MuleContextAware
setMuleContext
 
Methods inherited from interface org.mule.api.lifecycle.Initialisable
initialise
 
Methods inherited from interface org.mule.api.processor.MessageProcessor
process
 

Constructor Detail

BaseOAuth2AuthorizeMessageProcessor

public BaseOAuth2AuthorizeMessageProcessor()
Method Detail

getOAuthManagerClass

protected abstract Class<T> getOAuthManagerClass()

start

public final void start()
                 throws MuleException
Specified by:
start in interface Startable
Overrides:
start in class AbstractAuthorizeMessageProcessor
Throws:
MuleException

doProcess

protected final MuleEvent doProcess(MuleEvent event)
                             throws Exception
Starts the OAuth authorization process

Specified by:
doProcess in class DevkitBasedMessageProcessor
Parameters:
event - MuleEvent to be processed
Returns:
a mule event
Throws:
Exception

getOAuthManager

protected OAuth2Manager<OAuth2Adapter> getOAuthManager()


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.