public class MWHttpClientDefaultConfig extends java.lang.Object implements MWHttpClientConfig
MWHttpClient
. It sets the
configuration parameters:
For creating a custom configuration, override the methods of this class.
DEFAULT_IS_COOKIE_ENABLED, DEFAULT_IS_INTERRUPTABLE, DEFAULT_NUM_CONNECTIONS_PER_ADDRESS, DEFAULT_RESPONSE_SIZE_LIMIT, DEFAULT_TIMEOUT_MS
Constructor and Description |
---|
MWHttpClientDefaultConfig() |
Modifier and Type | Method and Description |
---|---|
int |
getMaxConnectionsPerAddress()
Returns the default value for maximum connections per address
|
int |
getResponseSizeLimit()
Returns the deafault maximum response size limit in bytes
|
long |
getTimeOutMs()
Returns the default amount of time, in milliseconds, the client will wait for a response
|
boolean |
isCookieEnabled() |
boolean |
isInterruptible()
Returns the default interruptible value
|
public int getMaxConnectionsPerAddress()
getMaxConnectionsPerAddress
in interface MWHttpClientConfig
public long getTimeOutMs()
getTimeOutMs
in interface MWHttpClientConfig
public boolean isInterruptible()
isInterruptible
in interface MWHttpClientConfig
public int getResponseSizeLimit()
getResponseSizeLimit
in interface MWHttpClientConfig
public boolean isCookieEnabled()
isCookieEnabled
in interface MWHttpClientConfig
Copyright 2010-2016 The MathWorks, Inc.