Package com.atlassian.sal.confluence.net
Class ConfluenceHttpClientTrustedRequestFactory
- java.lang.Object
-
- com.atlassian.sal.confluence.net.ConfluenceHttpClientTrustedRequestFactory
-
- All Implemented Interfaces:
com.atlassian.sal.api.net.RequestFactory
,com.atlassian.sal.api.net.TrustedRequestFactory<com.atlassian.sal.core.net.HttpClientTrustedRequest>
public class ConfluenceHttpClientTrustedRequestFactory extends Object implements com.atlassian.sal.api.net.TrustedRequestFactory<com.atlassian.sal.core.net.HttpClientTrustedRequest>
A trusted request factory that respects timeouts similarly toConfluenceHttpClientRequestFactory
- Since:
- 5.9.0
- See Also:
HttpClientTrustedRequestFactory
-
-
Constructor Summary
Constructors Constructor Description ConfluenceHttpClientTrustedRequestFactory(GlobalSettingsManager settingsManager, com.atlassian.sal.core.net.HttpClientTrustedRequestFactory trustedRequestFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.sal.core.net.HttpClientRequest
createRequest(com.atlassian.sal.api.net.Request.MethodType methodType, String url)
com.atlassian.sal.core.net.HttpClientTrustedRequest
createTrustedRequest(com.atlassian.sal.api.net.Request.MethodType methodType, String url)
boolean
supportsHeader()
-
-
-
Constructor Detail
-
ConfluenceHttpClientTrustedRequestFactory
public ConfluenceHttpClientTrustedRequestFactory(GlobalSettingsManager settingsManager, com.atlassian.sal.core.net.HttpClientTrustedRequestFactory trustedRequestFactory)
-
-
Method Detail
-
createTrustedRequest
public com.atlassian.sal.core.net.HttpClientTrustedRequest createTrustedRequest(com.atlassian.sal.api.net.Request.MethodType methodType, String url)
- Specified by:
createTrustedRequest
in interfacecom.atlassian.sal.api.net.TrustedRequestFactory<com.atlassian.sal.core.net.HttpClientTrustedRequest>
- Returns:
- a request which has its connection and socket timeout set to the configured values in confluence, or the values specified
by the system properties
SystemPropertiesConnectionConfig.HTTP_CONNECTION_TIMEOUT_PROPERTY_NAME
andSystemPropertiesConnectionConfig.HTTP_SOCKET_TIMEOUT_PROPERTY_NAME
if they are set.
-
createRequest
public com.atlassian.sal.core.net.HttpClientRequest createRequest(com.atlassian.sal.api.net.Request.MethodType methodType, String url)
- Specified by:
createRequest
in interfacecom.atlassian.sal.api.net.RequestFactory
-
supportsHeader
public boolean supportsHeader()
- Specified by:
supportsHeader
in interfacecom.atlassian.sal.api.net.RequestFactory
-
-