Package net.bluemind.core.rest.http
Class ClientSideServiceProvider
java.lang.Object
net.bluemind.core.rest.http.ClientSideServiceProvider
- All Implemented Interfaces:
IServiceProvider
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClientSideServiceProvider
getProvider
(String base, String apiKey) static ClientSideServiceProvider
getProvider
(String base, String apiKey, int connectTimeoutSeconds, int readTimeoutSeconds, int requestTimeoutSeconds) <T,
A> A <T> T
Instantiate a servicewithRemoteIps
(List<String> remotes)
-
Field Details
-
TIMEOUT_LONG_REQUEST
public static final int TIMEOUT_LONG_REQUEST -
TIMEOUT_INFINITE_REQUEST
public static final int TIMEOUT_INFINITE_REQUEST- See Also:
-
-
Method Details
-
getProvider
-
getProvider
public static ClientSideServiceProvider getProvider(String base, String apiKey, int connectTimeoutSeconds, int readTimeoutSeconds, int requestTimeoutSeconds) -
instance
Description copied from interface:IServiceProvider
Instantiate a service- Specified by:
instance
in interfaceIServiceProvider
- Parameters:
interfaceClass
- service interface- Returns:
- service instance
-
instance
-
withRemoteIps
-
setOrigin
- Specified by:
setOrigin
in interfaceIServiceProvider
-