|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpRetrievalService
Field Summary | |
---|---|
static int |
DEFAULT_MAX_CACHE_AGE
|
static int |
DEFAULT_MAX_DOWNLOAD_SIZE
|
static java.lang.String |
HTTP_INCLUDE_STACK_HEADER
Deprecated. since 3.3 use ResponseHeaderNames.STACK_DEPTH |
static int |
HTTP_INCLUDE_STACK_MAX_DEPTH
|
static java.lang.String |
HTTP_USER_AGENT_STRING
|
Method Summary | |
---|---|
HttpResponse |
get(HttpRequest request)
Retrieve a URL using custom HttpRequest settings |
HttpResponse |
get(java.lang.String url)
Retrieve a URL using the default HttpRequest settings for that URL. |
java.lang.Class[] |
getAvailableAuthenticators()
Retrieve the list of authenticators that can be used with this HttpRetrievalService |
HttpRequest |
getDefaultRequestFor(java.lang.String url)
Retrieve the default configured HttpRequest for a particular URL. |
HttpRetrievalServiceConfig |
getHttpRetrievalServiceConfig()
Retrieve the configuration for this service |
void |
setHttpRetrievalServiceConfig(HttpRetrievalServiceConfig config)
Overwrite the configuration for this service |
Field Detail |
---|
static final int DEFAULT_MAX_DOWNLOAD_SIZE
static final int DEFAULT_MAX_CACHE_AGE
@Deprecated static final java.lang.String HTTP_INCLUDE_STACK_HEADER
ResponseHeaderNames.STACK_DEPTH
static final int HTTP_INCLUDE_STACK_MAX_DEPTH
static final java.lang.String HTTP_USER_AGENT_STRING
Method Detail |
---|
HttpResponse get(java.lang.String url) throws java.io.IOException
get(service.getDefaultRequestFor(url));
url
- the URL to retrieve
java.io.IOException
- if the retrieval failsHttpResponse get(HttpRequest request) throws java.io.IOException
request
- the request we want to make
java.io.IOException
- if the retrieval failsHttpRequest getDefaultRequestFor(java.lang.String url)
url
- the URL that is going to be retrieved
java.lang.Class[] getAvailableAuthenticators()
HttpRetrievalServiceConfig getHttpRetrievalServiceConfig()
void setHttpRetrievalServiceConfig(HttpRetrievalServiceConfig config)
config
- the service configuration to save
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |