public abstract class BaseHttpRetrievalService extends Object implements HttpRetrievalService
DEFAULT_MAX_CACHE_AGE, DEFAULT_MAX_DOWNLOAD_SIZE, HTTP_INCLUDE_STACK_HEADER, HTTP_INCLUDE_STACK_MAX_DEPTH, HTTP_USER_AGENT_STRING
Constructor and Description |
---|
BaseHttpRetrievalService() |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
get(String url)
Retrieve a URL using the default HttpRequest settings for that URL.
|
ConfluenceHttpParameters |
getConnectionParameters() |
HttpRequest |
getDefaultRequestFor(String url)
Retrieve the default configured HttpRequest for a particular URL.
|
HttpRetrievalServiceConfig |
getHttpRetrievalServiceConfig()
Retrieve the configuration for this service
|
void |
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager) |
void |
setHttpRetrievalServiceConfig(HttpRetrievalServiceConfig config)
Overwrite the configuration for this service
|
void |
setSettingsManager(SettingsManager settingsManager) |
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–2017 Atlassian. All rights reserved.