public class DefaultHttpRequesterConfig extends Object implements HttpRequesterConfig, Initialisable, Stoppable, Startable, MuleContextAware
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
DefaultHttpRequesterConfig() |
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void stop() throws MuleException
stop
in interface Stoppable
MuleException
public String getScheme()
public HttpClient getHttpClient()
public String getBasePath()
getBasePath
in interface HttpRequesterConfig
public void setBasePath(String basePath)
public String getName()
public void setName(String name)
public String getHost()
getHost
in interface HttpRequesterConfig
public void setHost(String host)
public String getPort()
getPort
in interface HttpRequesterConfig
public void setPort(String port)
public HttpAuthentication getAuthentication()
getAuthentication
in interface HttpRequesterConfig
public void setAuthentication(HttpAuthentication authentication)
public TlsContextFactory getTlsContext()
getTlsContext
in interface HttpRequesterConfig
public void setTlsContext(TlsContextFactory tlsContext)
public RamlApiConfiguration getApiConfiguration()
public void setApiConfiguration(RamlApiConfiguration apiConfiguration)
public String getFollowRedirects()
getFollowRedirects
in interface HttpRequesterConfig
public void setFollowRedirects(String followRedirects)
public TcpClientSocketProperties getClientSocketProperties()
public void setClientSocketProperties(TcpClientSocketProperties clientSocketProperties)
public ProxyConfig getProxyConfig()
getProxyConfig
in interface HttpRequesterConfig
public void setProxyConfig(ProxyConfig proxyConfig)
public String getRequestStreamingMode()
getRequestStreamingMode
in interface HttpRequesterConfig
public void setRequestStreamingMode(String requestStreamingMode)
public String getSendBodyMode()
getSendBodyMode
in interface HttpRequesterConfig
public void setSendBodyMode(String sendBodyMode)
public String getParseResponse()
getParseResponse
in interface HttpRequesterConfig
public void setParseResponse(String parseResponse)
public String getResponseTimeout()
getResponseTimeout
in interface HttpRequesterConfig
public void setResponseTimeout(String responseTimeout)
public void start() throws MuleException
start
in interface Startable
MuleException
public void setMaxConnections(int maxConnections)
public void setUsePersistentConnections(boolean usePersistentConnections)
public void setConnectionIdleTimeout(int connectionIdleTimeout)
public void setMuleContext(MuleContext muleContext)
setMuleContext
in interface MuleContextAware
public void setProtocol(HttpConstants.Protocols protocol)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.