RequestFactory
or ReadOnlyApplicationLink
instead.@Deprecated public abstract class BaseHttpRetrievalService extends Object implements HttpRetrievalService
DEFAULT_MAX_CACHE_AGE, DEFAULT_MAX_DOWNLOAD_SIZE, HTTP_INCLUDE_STACK_MAX_DEPTH, HTTP_USER_AGENT_STRING
Constructor and Description |
---|
BaseHttpRetrievalService()
Deprecated.
|
Modifier and Type | Method and 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 service
|
void |
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
Deprecated.
|
void |
setHttpRetrievalServiceConfig(HttpRetrievalServiceConfig config)
Deprecated.
Overwrite the configuration for this service
|
void |
setSettingsManager(SettingsManager settingsManager)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, getAvailableAuthenticators
public HttpResponse get(String url) throws IOException
HttpRetrievalService
get(service.getDefaultRequestFor(url));
get
in interface HttpRetrievalService
url
- the URL to retrieveIOException
- if the retrieval failspublic HttpRequest getDefaultRequestFor(String url)
HttpRetrievalService
getDefaultRequestFor
in interface HttpRetrievalService
url
- the URL that is going to be retrievedpublic HttpRetrievalServiceConfig getHttpRetrievalServiceConfig()
HttpRetrievalService
getHttpRetrievalServiceConfig
in interface HttpRetrievalService
public ConfluenceHttpParameters getConnectionParameters()
public void setHttpRetrievalServiceConfig(HttpRetrievalServiceConfig config)
HttpRetrievalService
setHttpRetrievalServiceConfig
in interface HttpRetrievalService
config
- the service configuration to savepublic void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
public void setSettingsManager(SettingsManager settingsManager)
Copyright © 2003–2021 Atlassian. All rights reserved.