org.mule.security.oauth
Class DefaultHttpCallback

java.lang.Object
  extended by org.mule.security.oauth.DefaultHttpCallback
All Implemented Interfaces:
HttpCallback, MuleContextAware, Startable, Stoppable

public class DefaultHttpCallback
extends Object
implements HttpCallback

Default implementation of HttpCallback. This class does not only start the http inbound endpoint that is able to receive the callbacks, it also contains a processor chain to be invoked upon reception.


Nested Class Summary
 class DefaultHttpCallback.FlowRefMessageProcessor
           
 
Field Summary
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Constructor Summary
DefaultHttpCallback(Flow callbackFlow, MuleContext muleContext, String callbackDomain, Integer localPort, Integer remotePort, Boolean async)
           
DefaultHttpCallback(Flow callbackFlow, MuleContext muleContext, String callbackDomain, Integer localPort, Integer remotePort, Boolean async, Connector connector)
           
DefaultHttpCallback(List<MessageProcessor> callbackMessageProcessors, MuleContext muleContext, String callbackDomain, Integer localPort, Integer remotePort, Boolean async)
           
DefaultHttpCallback(List<MessageProcessor> callbackMessageProcessors, MuleContext muleContext, String callbackDomain, Integer localPort, Integer remotePort, Boolean async, Connector connector)
           
DefaultHttpCallback(List<MessageProcessor> callbackMessageProcessors, MuleContext muleContext, String callbackDomain, Integer localPort, Integer remotePort, String callbackPath, Boolean async)
           
DefaultHttpCallback(List<MessageProcessor> callbackMessageProcessors, MuleContext muleContext, String callbackDomain, Integer localPort, Integer remotePort, String callbackPath, Boolean async, Connector connector)
           
DefaultHttpCallback(List<MessageProcessor> callbackMessageProcessors, MuleContext muleContext, String callbackDomain, Integer localPort, Integer remotePort, String callbackPath, Boolean async, MessagingExceptionHandler exceptionHandler)
           
DefaultHttpCallback(List<MessageProcessor> callbackMessageProcessors, MuleContext muleContext, String callbackDomain, Integer localPort, Integer remotePort, String callbackPath, Boolean async, MessagingExceptionHandler exceptionHandler, Connector connector)
           
DefaultHttpCallback(MessageProcessor callbackMessageProcessor, MuleContext muleContext, String callbackDomain, Integer localPort, Integer remotePort, Boolean async)
           
DefaultHttpCallback(MessageProcessor callbackMessageProcessor, MuleContext muleContext, String callbackDomain, Integer localPort, Integer remotePort, Boolean async, Connector connector)
           
DefaultHttpCallback(MessageProcessor callbackMessageProcessor, MuleContext muleContext, String callbackDomain, Integer localPort, Integer remotePort, String callbackPath, Boolean async)
           
DefaultHttpCallback(MessageProcessor callbackMessageProcessor, MuleContext muleContext, String callbackDomain, Integer localPort, Integer remotePort, String callbackPath, Boolean async, Connector connector)
           
DefaultHttpCallback(MessageProcessor callbackMessageProcessor, MuleContext muleContext, String callbackDomain, Integer localPort, Integer remotePort, String callbackPath, Boolean async, MessagingExceptionHandler exceptionHandler, Connector connector)
           
 
Method Summary
 Flow getFlow()
           
 String getUrl()
          Retrieves url
 void setMuleContext(MuleContext value)
          Sets muleContext
 void start()
          Starts a http inbound endpoint served by the underlying connector.
 void stop()
          Stops and disposes the processor chain and the inbound endpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHttpCallback

public DefaultHttpCallback(Flow callbackFlow,
                           MuleContext muleContext,
                           String callbackDomain,
                           Integer localPort,
                           Integer remotePort,
                           Boolean async)

DefaultHttpCallback

public DefaultHttpCallback(MessageProcessor callbackMessageProcessor,
                           MuleContext muleContext,
                           String callbackDomain,
                           Integer localPort,
                           Integer remotePort,
                           Boolean async)

DefaultHttpCallback

public DefaultHttpCallback(MessageProcessor callbackMessageProcessor,
                           MuleContext muleContext,
                           String callbackDomain,
                           Integer localPort,
                           Integer remotePort,
                           String callbackPath,
                           Boolean async)

DefaultHttpCallback

public DefaultHttpCallback(Flow callbackFlow,
                           MuleContext muleContext,
                           String callbackDomain,
                           Integer localPort,
                           Integer remotePort,
                           Boolean async,
                           Connector connector)

DefaultHttpCallback

public DefaultHttpCallback(MessageProcessor callbackMessageProcessor,
                           MuleContext muleContext,
                           String callbackDomain,
                           Integer localPort,
                           Integer remotePort,
                           Boolean async,
                           Connector connector)

DefaultHttpCallback

public DefaultHttpCallback(MessageProcessor callbackMessageProcessor,
                           MuleContext muleContext,
                           String callbackDomain,
                           Integer localPort,
                           Integer remotePort,
                           String callbackPath,
                           Boolean async,
                           Connector connector)

DefaultHttpCallback

public DefaultHttpCallback(List<MessageProcessor> callbackMessageProcessors,
                           MuleContext muleContext,
                           String callbackDomain,
                           Integer localPort,
                           Integer remotePort,
                           Boolean async,
                           Connector connector)
                    throws MuleException
Throws:
MuleException

DefaultHttpCallback

public DefaultHttpCallback(List<MessageProcessor> callbackMessageProcessors,
                           MuleContext muleContext,
                           String callbackDomain,
                           Integer localPort,
                           Integer remotePort,
                           String callbackPath,
                           Boolean async,
                           Connector connector)
                    throws MuleException
Throws:
MuleException

DefaultHttpCallback

public DefaultHttpCallback(List<MessageProcessor> callbackMessageProcessors,
                           MuleContext muleContext,
                           String callbackDomain,
                           Integer localPort,
                           Integer remotePort,
                           Boolean async)
                    throws MuleException
Throws:
MuleException

DefaultHttpCallback

public DefaultHttpCallback(List<MessageProcessor> callbackMessageProcessors,
                           MuleContext muleContext,
                           String callbackDomain,
                           Integer localPort,
                           Integer remotePort,
                           String callbackPath,
                           Boolean async)
                    throws MuleException
Throws:
MuleException

DefaultHttpCallback

public DefaultHttpCallback(List<MessageProcessor> callbackMessageProcessors,
                           MuleContext muleContext,
                           String callbackDomain,
                           Integer localPort,
                           Integer remotePort,
                           String callbackPath,
                           Boolean async,
                           MessagingExceptionHandler exceptionHandler)
                    throws MuleException
Throws:
MuleException

DefaultHttpCallback

public DefaultHttpCallback(List<MessageProcessor> callbackMessageProcessors,
                           MuleContext muleContext,
                           String callbackDomain,
                           Integer localPort,
                           Integer remotePort,
                           String callbackPath,
                           Boolean async,
                           MessagingExceptionHandler exceptionHandler,
                           Connector connector)
                    throws MuleException
Throws:
MuleException

DefaultHttpCallback

public DefaultHttpCallback(MessageProcessor callbackMessageProcessor,
                           MuleContext muleContext,
                           String callbackDomain,
                           Integer localPort,
                           Integer remotePort,
                           String callbackPath,
                           Boolean async,
                           MessagingExceptionHandler exceptionHandler,
                           Connector connector)
                    throws MuleException
Throws:
MuleException
Method Detail

getUrl

public String getUrl()
Retrieves url

Specified by:
getUrl in interface HttpCallback
Returns:
the url that the callback is listening on

setMuleContext

public void setMuleContext(MuleContext value)
Sets muleContext

Specified by:
setMuleContext in interface MuleContextAware
Parameters:
value - Value to set

start

public void start()
           throws MuleException
Starts a http inbound endpoint served by the underlying connector. It also builds a processor chain to be invoked upon callback reception.

Specified by:
start in interface Startable
Throws:
MuleException

stop

public void stop()
          throws MuleException
Stops and disposes the processor chain and the inbound endpoint.

Specified by:
stop in interface Stoppable
Throws:
MuleException

getFlow

public Flow getFlow()


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