Package kong.unirest.core
Class MockConfig
- java.lang.Object
-
- kong.unirest.core.Config
-
- kong.unirest.core.MockConfig
-
public class MockConfig extends Config
A Mock Config that will not actually start up any real clients.
-
-
Field Summary
Fields Modifier and Type Field Description private MockClient
client
-
Fields inherited from class kong.unirest.core.Config
DEFAULT_CONNECT_TIMEOUT, JDK_HTTPCLIENT_KEEPALIVE_TIMEOUT
-
-
Constructor Summary
Constructors Constructor Description MockConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Client
getClient()
Return the current Client.-
Methods inherited from class kong.unirest.core.Config
addDefaultCookie, addDefaultCookie, addDefaultHeader, cacheResponses, cacheResponses, ciphers, clearDefaultHeaders, clientCertificateStore, clientCertificateStore, connectionTTL, connectionTTL, connectTimeout, cookieSpec, defaultBaseUrl, enableCookieManagement, executor, followRedirects, getCiphers, getConnectionTimeout, getCookieSpec, getCustomExecutor, getDefaultBaseUrl, getDefaultHeaders, getDefaultResponseEncoding, getEnabledCookieManagement, getFollowRedirects, getKeystore, getKeyStorePassword, getMetric, getObjectMapper, getProtocols, getProxy, getRetryStrategy, getSslContext, getTTL, getUniInterceptor, getVersion, httpClient, httpClient, instrumentWith, interceptor, isAutomaticRetryAfter, isRequestCompressionOn, isRunning, isVerifySsl, maxRetries, protocols, proxy, proxy, proxy, requestCompression, reset, reset, retryAfter, retryAfter, retryAfter, setDefaultBasicAuth, setDefaultHeader, setDefaultHeader, setDefaultResponseEncoding, setObjectMapper, sslContext, useSystemProperties, useSystemProperties, verifySsl, version
-
-
-
-
Field Detail
-
client
private MockClient client
-
-