org.mule.security.oauth.processor
Class BaseOAuth1AuthorizeMessageProcessor

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.BaseOAuth1AuthorizeMessageProcessor
All Implemented Interfaces:
FlowConstructAware, MuleContextAware, Disposable, Initialisable, Startable, Stoppable, InterceptingMessageProcessor, MessageProcessor, MessageSource

public abstract class BaseOAuth1AuthorizeMessageProcessor
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
BaseOAuth1AuthorizeMessageProcessor()
           
 
Method Summary
protected  MuleEvent doProcess(MuleEvent event)
          Starts the OAuth authorization process
protected  OAuth1Adapter getAdapter()
           
protected abstract  Class<? extends OAuth1Adapter> getAdapterClass()
           
 String getRequestTokenUrl()
          Retrieves requestTokenUrl
 void setRequestTokenUrl(String value)
          Sets requestTokenUrl
 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

BaseOAuth1AuthorizeMessageProcessor

public BaseOAuth1AuthorizeMessageProcessor()
Method Detail

getAdapterClass

protected abstract Class<? extends OAuth1Adapter> getAdapterClass()

start

public 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:
MuleException
Exception

getAdapter

protected OAuth1Adapter getAdapter()

setRequestTokenUrl

public void setRequestTokenUrl(String value)
Sets requestTokenUrl

Parameters:
value - Value to set

getRequestTokenUrl

public String getRequestTokenUrl()
Retrieves requestTokenUrl



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