public abstract class BaseConfig extends Object implements DynamicsConfig
Modifier and Type | Field and Description |
---|---|
protected Integer |
connectionTimeout
Specifies the amount of time, in milliseconds, that the consumer will attempt to establish a connection before it times out.
|
protected String |
proxyHost
Hostname of the proxy.
|
protected String |
proxyPassword
Password used to authenticate against the proxy.
|
protected String |
proxyPort
Port of the proxy.
|
protected String |
proxyUsername
Username used to authenticate against the proxy.
|
protected Integer |
readTimeout
Specifies the amount of time, in milliseconds, that the consumer will wait for a response before it times out.
|
Constructor and Description |
---|
BaseConfig() |
Modifier and Type | Method and Description |
---|---|
String |
addEndpoint(String endpoint) |
String |
addSlash(String endpoint) |
String |
addVersion(String endpoint) |
Integer |
getConnectionTimeout() |
String |
getProxyHost() |
String |
getProxyPassword() |
String |
getProxyPort() |
String |
getProxyUsername() |
Integer |
getReadTimeout() |
String |
getVersion() |
protected DynamicsHttpClientFactory |
prepareHttpClientFactory() |
protected DynamicsHttpClientFactory |
prepareHttpClientFactory(HttpClientSettings httpClientSettings) |
protected org.mule.module.http.internal.request.DefaultProxyConfig |
prepareProxyDetails() |
protected org.apache.http.client.config.RequestConfig |
prepareRequestConfig() |
void |
setConnectionTimeout(Integer connectionTimeout) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPassword(String proxyPassword) |
void |
setProxyPort(String proxyPort) |
void |
setProxyUsername(String proxyUsername) |
void |
setReadTimeout(Integer readTimeout) |
void |
setVersion(String version) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConnection, getEndpoint
@Configurable @Default(value="0") @Placement(order=7, group="Connection") protected Integer readTimeout
@Configurable @Default(value="0") @Placement(order=8, group="Connection") protected Integer connectionTimeout
@Configurable @Optional @Placement(group="Proxy Settings") @FriendlyName(value="Host") protected String proxyHost
@Configurable @Optional @Placement(group="Proxy Settings") @FriendlyName(value="Port") protected String proxyPort
@Configurable @Optional @Placement(group="Proxy Settings") @FriendlyName(value="Username") protected String proxyUsername
@Configurable @Optional @Password @Placement(group="Proxy Settings") @FriendlyName(value="Password") protected String proxyPassword
public Integer getReadTimeout()
public void setReadTimeout(Integer readTimeout)
public Integer getConnectionTimeout()
public void setConnectionTimeout(Integer connectionTimeout)
public String getProxyHost()
public void setProxyHost(String proxyHost)
public String getProxyPort()
public void setProxyPort(String proxyPort)
public String getProxyUsername()
public void setProxyUsername(String proxyUsername)
public String getProxyPassword()
public void setProxyPassword(String proxyPassword)
public String getVersion()
public void setVersion(String version)
protected org.mule.module.http.internal.request.DefaultProxyConfig prepareProxyDetails() throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
protected DynamicsHttpClientFactory prepareHttpClientFactory() throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
protected DynamicsHttpClientFactory prepareHttpClientFactory(HttpClientSettings httpClientSettings) throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
protected org.apache.http.client.config.RequestConfig prepareRequestConfig()
Copyright © 2010–2020. All rights reserved.