public class OAuthCallbackServersManager extends Object
requester-config is dynamic. That means, it is evaluated and created for each event that tires to
send an http request. Since the OAuth config is nested inside the requester, OAuth config will be dynamic too.
That raises the need to have a centralized manager for the OAuth callbacks, since different events through the same http requester will try to create the same callback server. This class manages that. It will return wrapped HTTP services that have a counter of how many users of that server are in OAuth extension.
| Constructor and Description |
|---|
OAuthCallbackServersManager() |
| Modifier and Type | Method and Description |
|---|---|
HttpServer |
getServer(HttpServerConfiguration serverConfiguration)
Builds or returns an already built
HttpServer wrapper. |
public HttpServer getServer(HttpServerConfiguration serverConfiguration) throws org.mule.runtime.api.connection.ConnectionException
HttpServer wrapper.serverConfiguration - the configuration for the new server. Its port will be used to determine if a new one must be
created or an existing one returned.org.mule.runtime.api.connection.ConnectionException - See HttpServerFactory.create(HttpServerConfiguration)Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.