org.mule.security.oauth.processor
Class AbstractAuthorizeMessageProcessor

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

public abstract class AbstractAuthorizeMessageProcessor
extends DevkitBasedMessageProcessor
implements FlowConstructAware, MuleContextAware, Initialisable, Startable, Stoppable, InterceptingMessageProcessor


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
AbstractAuthorizeMessageProcessor()
           
 
Method Summary
 String getAccessTokenUrl()
          Retrieves accessTokenUrl
protected abstract  String getAuthCodeRegex()
           
 String getAuthorizationUrl()
          Retrieves authorizationUrl
 MessageProcessor getListener()
           
 HttpCallback getOauthCallback()
           
 String getState()
           
protected  void notifyAuthorizeStart(MuleEvent event)
           
 void setAccessTokenUrl(String value)
          Sets accessTokenUrl
 void setAuthorizationUrl(String value)
          Sets authorizationUrl
 void setCallbackFactory(HttpCallbackFactory callbackFactory)
           
 void setListener(MessageProcessor value)
          Sets listener
 void setOauthCallback(HttpCallback oauthCallback)
           
 void setState(String value)
          Sets state
 void start()
           
protected  void startCallback(HttpCallbackAdapter adapter, FetchAccessTokenMessageProcessor fetchAccessTokenMessageProcessor)
           
 void stop()
           
protected  String toString(MuleEvent event, Object value)
           
 
Methods inherited from class org.mule.devkit.processor.DevkitBasedMessageProcessor
dispose, doProcess, 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

AbstractAuthorizeMessageProcessor

public AbstractAuthorizeMessageProcessor()
Method Detail

getAuthCodeRegex

protected abstract String getAuthCodeRegex()

start

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

startCallback

protected void startCallback(HttpCallbackAdapter adapter,
                             FetchAccessTokenMessageProcessor fetchAccessTokenMessageProcessor)
                      throws MuleException
Throws:
MuleException

notifyAuthorizeStart

protected void notifyAuthorizeStart(MuleEvent event)

stop

public final void stop()
                throws MuleException
Specified by:
stop in interface Stoppable
Overrides:
stop in class DevkitBasedMessageProcessor
Throws:
MuleException

toString

protected String toString(MuleEvent event,
                          Object value)

setListener

public void setListener(MessageProcessor value)
Sets listener

Specified by:
setListener in interface MessageSource
Parameters:
value - Value to set

setAuthorizationUrl

public void setAuthorizationUrl(String value)
Sets authorizationUrl

Parameters:
value - Value to set

getAuthorizationUrl

public String getAuthorizationUrl()
Retrieves authorizationUrl


setAccessTokenUrl

public void setAccessTokenUrl(String value)
Sets accessTokenUrl

Parameters:
value - Value to set

getAccessTokenUrl

public String getAccessTokenUrl()
Retrieves accessTokenUrl


setState

public void setState(String value)
Sets state

Parameters:
value - Value to set

getOauthCallback

public HttpCallback getOauthCallback()

setOauthCallback

public void setOauthCallback(HttpCallback oauthCallback)

getListener

public MessageProcessor getListener()

getState

public String getState()

setCallbackFactory

public void setCallbackFactory(HttpCallbackFactory callbackFactory)


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