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_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 |
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
Copyright 2010-2013 The MathWorks, Inc.