Package net.bluemind.core.rest.http
Class VertxPromiseServiceProvider
java.lang.Object
net.bluemind.core.rest.http.VertxServiceProvider
net.bluemind.core.rest.http.VertxPromiseServiceProvider
- All Implemented Interfaces:
ITaggedServiceProvider
,IServiceProvider
-
Field Summary
Fields inherited from class net.bluemind.core.rest.http.VertxServiceProvider
origin
-
Constructor Summary
ConstructorDescriptionVertxPromiseServiceProvider
(HttpClientProvider httpClientProvider, ILocator locator, String apiKey) VertxPromiseServiceProvider
(HttpClientProvider httpClientProvider, ILocator locator, String apiKey, List<String> remoteIps) -
Method Summary
Modifier and TypeMethodDescriptionfrom
(io.vertx.core.http.HttpServerRequest req) <T> T
Instantiate a service<A> A
-
Constructor Details
-
VertxPromiseServiceProvider
public VertxPromiseServiceProvider(HttpClientProvider httpClientProvider, ILocator locator, String apiKey) -
VertxPromiseServiceProvider
public VertxPromiseServiceProvider(HttpClientProvider httpClientProvider, ILocator locator, String apiKey, List<String> remoteIps)
-
-
Method Details
-
from
- Overrides:
from
in classVertxServiceProvider
-
instance
- Specified by:
instance
in interfaceITaggedServiceProvider
- Overrides:
instance
in classVertxServiceProvider
-
instance
Description copied from interface:IServiceProvider
Instantiate a service- Specified by:
instance
in interfaceIServiceProvider
- Parameters:
interfaceClass
- service interface- Returns:
- service instance
- Throws:
ServerFault
- service instantiation failed
-
setOrigin
- Specified by:
setOrigin
in interfaceIServiceProvider
-