Class BaseHttpRetrievalService
- java.lang.Object
-
- com.atlassian.confluence.util.http.BaseHttpRetrievalService
-
- All Implemented Interfaces:
HttpRetrievalService
- Direct Known Subclasses:
HttpClientHttpRetrievalService
@Deprecated public abstract class BaseHttpRetrievalService extends Object implements HttpRetrievalService
Deprecated.since 7.0.1 UseRequestFactory
orReadOnlyApplicationLink
instead.- Since:
- 4.1
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description BaseHttpRetrievalService()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HttpResponse
get(String url)
Deprecated.Retrieve a URL using the default HttpRequest settings for that URL.ConfluenceHttpParameters
getConnectionParameters()
Deprecated.HttpRequest
getDefaultRequestFor(String url)
Deprecated.Retrieve the default configured HttpRequest for a particular URL.HttpRetrievalServiceConfig
getHttpRetrievalServiceConfig()
Deprecated.Retrieve the configuration for this servicevoid
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
Deprecated.void
setHttpRetrievalServiceConfig(HttpRetrievalServiceConfig config)
Deprecated.Overwrite the configuration for this servicevoid
setSettingsManager(SettingsManager settingsManager)
Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.util.http.HttpRetrievalService
get, getAvailableAuthenticators
-
-
-
-
Method Detail
-
get
public HttpResponse get(String url) throws IOException
Deprecated.Description copied from interface:HttpRetrievalService
Retrieve a URL using the default HttpRequest settings for that URL. The equivalent of callingget(service.getDefaultRequestFor(url));
- Specified by:
get
in interfaceHttpRetrievalService
- Parameters:
url
- the URL to retrieve- Returns:
- a response object encapsulating the result of the request
- Throws:
IOException
- if the retrieval fails
-
getDefaultRequestFor
public HttpRequest getDefaultRequestFor(String url)
Deprecated.Description copied from interface:HttpRetrievalService
Retrieve the default configured HttpRequest for a particular URL. Will come prepackaged with the configured system defaults for authentication, retrieval size and caching.- Specified by:
getDefaultRequestFor
in interfaceHttpRetrievalService
- Parameters:
url
- the URL that is going to be retrieved- Returns:
- the system default HttpRequest for that URL.
-
getHttpRetrievalServiceConfig
public HttpRetrievalServiceConfig getHttpRetrievalServiceConfig()
Deprecated.Description copied from interface:HttpRetrievalService
Retrieve the configuration for this service- Specified by:
getHttpRetrievalServiceConfig
in interfaceHttpRetrievalService
- Returns:
- the service configuration
-
getConnectionParameters
public ConfluenceHttpParameters getConnectionParameters()
Deprecated.
-
setHttpRetrievalServiceConfig
public void setHttpRetrievalServiceConfig(HttpRetrievalServiceConfig config)
Deprecated.Description copied from interface:HttpRetrievalService
Overwrite the configuration for this service- Specified by:
setHttpRetrievalServiceConfig
in interfaceHttpRetrievalService
- Parameters:
config
- the service configuration to save
-
setBandanaManager
public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
Deprecated.
-
setSettingsManager
public void setSettingsManager(SettingsManager settingsManager)
Deprecated.
-
-