Interface HttpRetrievalService
Deprecated, for removal: This API element is subject to removal in a future version.
- Since:
- 4.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.static final boolean
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionget
(HttpRequest request) Deprecated.since 7.0.1 useRequestFactory.createRequest(com.atlassian.sal.api.net.Request.MethodType, java.lang.String)
instead.Deprecated.since 7.0.1 useRequestFactory.createRequest(com.atlassian.sal.api.net.Request.MethodType, java.lang.String)
instead.Class[]
Deprecated.since 7.0.1Deprecated.since 7.0.1 useRequestFactory.createRequest(com.atlassian.sal.api.net.Request.MethodType, java.lang.String)
instead.Deprecated.since 7.0.1void
Deprecated.since 7.0.1
-
Field Details
-
NET_REQUEST_ALLOW_ALL_HOSTS
static final boolean NET_REQUEST_ALLOW_ALL_HOSTSDeprecated, for removal: This API element is subject to removal in a future version. -
DEFAULT_MAX_DOWNLOAD_SIZE
static final int DEFAULT_MAX_DOWNLOAD_SIZEDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
DEFAULT_MAX_CACHE_AGE
static final int DEFAULT_MAX_CACHE_AGEDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
HTTP_INCLUDE_STACK_MAX_DEPTH
static final int HTTP_INCLUDE_STACK_MAX_DEPTHDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
HTTP_USER_AGENT_STRING
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Method Details
-
get
Deprecated.since 7.0.1 useRequestFactory.createRequest(com.atlassian.sal.api.net.Request.MethodType, java.lang.String)
instead.Retrieve a URL using the default HttpRequest settings for that URL. The equivalent of callingget(service.getDefaultRequestFor(url));
- Parameters:
url
- the URL to retrieve- Returns:
- a response object encapsulating the result of the request
- Throws:
IOException
- if the retrieval fails
-
get
Deprecated.since 7.0.1 useRequestFactory.createRequest(com.atlassian.sal.api.net.Request.MethodType, java.lang.String)
instead.Retrieve a URL using custom HttpRequest settings- Parameters:
request
- the request we want to make- Returns:
- a response object encapsulating the result of the request
- Throws:
IOException
- if the retrieval fails
-
getDefaultRequestFor
Deprecated.since 7.0.1 useRequestFactory.createRequest(com.atlassian.sal.api.net.Request.MethodType, java.lang.String)
instead.Retrieve the default configured HttpRequest for a particular URL. Will come prepackaged with the configured system defaults for authentication, retrieval size and caching.- Parameters:
url
- the URL that is going to be retrieved- Returns:
- the system default HttpRequest for that URL.
-
getAvailableAuthenticators
Deprecated.since 7.0.1Retrieve the list of authenticators that can be used with this HttpRetrievalService- Returns:
- the list of authenticators that can be used with this HttpRetrievalService
-
getHttpRetrievalServiceConfig
Deprecated.since 7.0.1Retrieve the configuration for this service- Returns:
- the service configuration
-
setHttpRetrievalServiceConfig
Deprecated.since 7.0.1Overwrite the configuration for this service- Parameters:
config
- the service configuration to save
-
RequestFactory
orReadOnlyApplicationLink
instead.