public class ConfluenceHttpClientRequestFactory
extends com.atlassian.sal.core.net.HttpClientRequestFactory
HttpClientRequestFactory
which configures the
connection parameters using ConfluenceHttpParameters
rather than using
SAL's own defaults.
In confluence 5.9, the system property specified by SystemPropertiesConnectionConfig.HTTP_CONNECTION_TIMEOUT_PROPERTY_NAME
and SystemPropertiesConnectionConfig.HTTP_SOCKET_TIMEOUT_PROPERTY_NAME
will be used to override the value in confluence,
if they are provided.
Constructor and Description |
---|
ConfluenceHttpClientRequestFactory(SettingsManager settingsManager) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.sal.core.net.HttpClientRequest |
createRequest(com.atlassian.sal.api.net.Request.MethodType methodType,
String url) |
public ConfluenceHttpClientRequestFactory(SettingsManager settingsManager)
public com.atlassian.sal.core.net.HttpClientRequest createRequest(com.atlassian.sal.api.net.Request.MethodType methodType, String url)
createRequest
in interface com.atlassian.sal.api.net.RequestFactory<com.atlassian.sal.core.net.HttpClientRequest<?,?>>
createRequest
in class com.atlassian.sal.core.net.HttpClientRequestFactory
SystemPropertiesConnectionConfig.HTTP_CONNECTION_TIMEOUT_PROPERTY_NAME
and
SystemPropertiesConnectionConfig.HTTP_SOCKET_TIMEOUT_PROPERTY_NAME
if they are set.Copyright © 2003–2016 Atlassian. All rights reserved.