public class DefaultHttpRequesterConfig extends AbstractAnnotatedObject implements HttpRequesterConfig, Initialisable, Stoppable, Startable, MuleContextAware
Modifier and Type | Field and Description |
---|---|
static String |
OBJECT_HTTP_CLIENT_FACTORY |
PROPERTY_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
DefaultHttpRequesterConfig() |
getAnnotation, getAnnotations, setAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotation, getAnnotations, setAnnotations
public static final String OBJECT_HTTP_CLIENT_FACTORY
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 CookieManager getCookieManager()
public String getBasePath()
getBasePath
in interface HttpRequesterConfig
public void setBasePath(String basePath)
public String getName()
NamedObject
getName
in interface NamedObject
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 boolean isEnableCookies()
public void setEnableCookies(boolean enableCookies)
public void setMuleContext(MuleContext muleContext)
setMuleContext
in interface MuleContextAware
public void setProtocol(HttpConstants.Protocols protocol)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.