org.mule.api.callback
Interface HttpCallbackFactory
- All Known Implementing Classes:
- DefaultHttpCallbackFactory
public interface HttpCallbackFactory
Factory class for instances of HttpCallback
that are
used on the OAuth dance
createCallback
HttpCallback createCallback(HttpCallbackAdapter adapter,
String authCodeRegex,
FetchAccessTokenMessageProcessor fetchAccessTokenMessageProcessor,
MessageProcessor listener,
MuleContext muleContext,
FlowConstruct flowConstruct)
throws MuleException
- returns a new callback that has not been started
- Parameters:
adapter
- adapter holding the callback configurationauthCodeRegex
- uncompiled regular expression to extract the
authorization codefetchAccessTokenMessageProcessor
- an instance of
FetchAccessTokenMessageProcessor
listener
- a message processor to invoke when the callback has been
receivedmuleContext
- a MuleContext
flowConstruct
- the construct of the flow where this callback lives
- Returns:
-
- Throws:
MuleException
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.