RequestFactory
or ReadOnlyApplicationLink
instead.@Deprecated public interface HttpRetrievalService
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_CACHE_AGE
Deprecated.
|
static int |
DEFAULT_MAX_DOWNLOAD_SIZE
Deprecated.
|
static int |
HTTP_INCLUDE_STACK_MAX_DEPTH
Deprecated.
|
static String |
HTTP_USER_AGENT_STRING
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
get(HttpRequest request)
Deprecated.
since 7.0.1 use
RequestFactory.createRequest(com.atlassian.sal.api.net.Request.MethodType, java.lang.String) instead. |
HttpResponse |
get(String url)
Deprecated.
since 7.0.1 use
RequestFactory.createRequest(com.atlassian.sal.api.net.Request.MethodType, java.lang.String) instead. |
Class[] |
getAvailableAuthenticators()
Deprecated.
since 7.0.1
|
HttpRequest |
getDefaultRequestFor(String url)
Deprecated.
since 7.0.1 use
RequestFactory.createRequest(com.atlassian.sal.api.net.Request.MethodType, java.lang.String) instead. |
HttpRetrievalServiceConfig |
getHttpRetrievalServiceConfig()
Deprecated.
since 7.0.1
|
void |
setHttpRetrievalServiceConfig(HttpRetrievalServiceConfig config)
Deprecated.
since 7.0.1
|
static final int DEFAULT_MAX_DOWNLOAD_SIZE
static final int DEFAULT_MAX_CACHE_AGE
static final int HTTP_INCLUDE_STACK_MAX_DEPTH
static final String HTTP_USER_AGENT_STRING
@Deprecated HttpResponse get(String url) throws IOException
RequestFactory.createRequest(com.atlassian.sal.api.net.Request.MethodType, java.lang.String)
instead.get(service.getDefaultRequestFor(url));
url
- the URL to retrieveIOException
- if the retrieval fails@Deprecated HttpResponse get(HttpRequest request) throws IOException
RequestFactory.createRequest(com.atlassian.sal.api.net.Request.MethodType, java.lang.String)
instead.request
- the request we want to makeIOException
- if the retrieval fails@Deprecated HttpRequest getDefaultRequestFor(String url)
RequestFactory.createRequest(com.atlassian.sal.api.net.Request.MethodType, java.lang.String)
instead.url
- the URL that is going to be retrieved@Deprecated Class[] getAvailableAuthenticators()
@Deprecated HttpRetrievalServiceConfig getHttpRetrievalServiceConfig()
@Deprecated void setHttpRetrievalServiceConfig(HttpRetrievalServiceConfig config)
config
- the service configuration to saveCopyright © 2003–2021 Atlassian. All rights reserved.