Class BaseHttpRetrievalService
java.lang.Object
com.atlassian.confluence.util.http.BaseHttpRetrievalService
- All Implemented Interfaces:
HttpRetrievalService
- Direct Known Subclasses:
HttpClientHttpRetrievalService
@Deprecated(forRemoval=true)
public abstract class BaseHttpRetrievalService
extends Object
implements HttpRetrievalService
Deprecated, for removal: This API element is subject to removal in a future version.
- Since:
- 4.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.atlassian.bandana.BandanaManagerDeprecated, for removal: This API element is subject to removal in a future version.protected com.atlassian.plugins.whitelist.OutboundWhitelistDeprecated, for removal: This API element is subject to removal in a future version.Fields inherited from interface com.atlassian.confluence.util.http.HttpRetrievalService
DEFAULT_MAX_CACHE_AGE, DEFAULT_MAX_DOWNLOAD_SIZE, HTTP_INCLUDE_STACK_MAX_DEPTH, HTTP_USER_AGENT_STRING, NET_REQUEST_ALLOW_ALL_HOSTS -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Retrieve a URL using the default HttpRequest settings for that URL.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Retrieve the default configured HttpRequest for a particular URL.Deprecated, for removal: This API element is subject to removal in a future version.Retrieve the configuration for this servicevoidsetBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Overwrite the configuration for this servicevoidsetOutboundWhitelist(com.atlassian.plugins.whitelist.OutboundWhitelist outboundWhitelist) Deprecated, for removal: This API element is subject to removal in a future version.voidsetSettingsManager(SettingsManager settingsManager) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.util.http.HttpRetrievalService
get, getAvailableAuthenticators
-
Field Details
-
bandanaManager
protected com.atlassian.bandana.BandanaManager bandanaManagerDeprecated, for removal: This API element is subject to removal in a future version. -
outboundWhitelist
protected com.atlassian.plugins.whitelist.OutboundWhitelist outboundWhitelistDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
BaseHttpRetrievalService
public BaseHttpRetrievalService()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
get
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:HttpRetrievalServiceRetrieve a URL using the default HttpRequest settings for that URL. The equivalent of callingget(service.getDefaultRequestFor(url));- Specified by:
getin interfaceHttpRetrievalService- Parameters:
url- the URL to retrieve- Returns:
- a response object encapsulating the result of the request
- Throws:
IOException- if the retrieval fails
-
getDefaultRequestFor
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:HttpRetrievalServiceRetrieve the default configured HttpRequest for a particular URL. Will come prepackaged with the configured system defaults for authentication, retrieval size and caching.- Specified by:
getDefaultRequestForin interfaceHttpRetrievalService- Parameters:
url- the URL that is going to be retrieved- Returns:
- the system default HttpRequest for that URL.
-
getHttpRetrievalServiceConfig
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:HttpRetrievalServiceRetrieve the configuration for this service- Specified by:
getHttpRetrievalServiceConfigin interfaceHttpRetrievalService- Returns:
- the service configuration
-
getConnectionParameters
Deprecated, for removal: This API element is subject to removal in a future version. -
setHttpRetrievalServiceConfig
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:HttpRetrievalServiceOverwrite the configuration for this service- Specified by:
setHttpRetrievalServiceConfigin interfaceHttpRetrievalService- Parameters:
config- the service configuration to save
-
setBandanaManager
public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager) Deprecated, for removal: This API element is subject to removal in a future version. -
setSettingsManager
Deprecated, for removal: This API element is subject to removal in a future version. -
setOutboundWhitelist
public void setOutboundWhitelist(com.atlassian.plugins.whitelist.OutboundWhitelist outboundWhitelist) Deprecated, for removal: This API element is subject to removal in a future version.
-
RequestFactoryorReadOnlyApplicationLinkinstead.