public class CachedRequest
extends com.google.gdata.client.http.GoogleGDataRequest
| Modifier and Type | Field and Description |
|---|---|
protected cz.geek.cache.Cache<String,CachedResponse> |
cache |
protected CachedResponse |
resp |
| Modifier | Constructor and Description |
|---|---|
protected |
CachedRequest(cz.geek.cache.Cache<String,CachedResponse> cache,
com.google.gdata.client.Service.GDataRequest.RequestType type,
URL requestUrl,
com.google.gdata.util.ContentType contentType,
com.google.gdata.client.http.HttpAuthToken authToken,
Map<String,String> headerMap,
Map<String,String> privateHeaderMap,
com.google.gdata.client.http.HttpUrlConnectionSource connectionSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Skips if request is in cache.
|
com.google.gdata.util.ContentType |
getResponseContentType() |
com.google.gdata.data.DateTime |
getResponseDateHeader(String headerName) |
String |
getResponseHeader(String headerName) |
InputStream |
getResponseStream() |
protected boolean |
isCachable() |
getRequestVersion, getResponseVersion, handleErrorResponse, setServicecheckResponse, end, getConnection, getParseSource, getRequestConnection, getRequestContentType, getRequestStream, getRequestUrl, getRequestWriter, setConnectTimeout, setEtag, setHeader, setIfModifiedSince, setMethod, setPrivateHeader, setReadTimeoutprotected cz.geek.cache.Cache<String,CachedResponse> cache
protected CachedResponse resp
protected CachedRequest(cz.geek.cache.Cache<String,CachedResponse> cache, com.google.gdata.client.Service.GDataRequest.RequestType type, URL requestUrl, com.google.gdata.util.ContentType contentType, com.google.gdata.client.http.HttpAuthToken authToken, Map<String,String> headerMap, Map<String,String> privateHeaderMap, com.google.gdata.client.http.HttpUrlConnectionSource connectionSource) throws IOException
IOExceptionpublic void execute()
throws IOException,
com.google.gdata.util.ServiceException
execute in interface com.google.gdata.client.Service.GDataRequestexecute in class com.google.gdata.client.http.GoogleGDataRequestIOExceptioncom.google.gdata.util.ServiceExceptionprotected boolean isCachable()
public InputStream getResponseStream() throws IOException
getResponseStream in interface com.google.gdata.client.Service.GDataRequestgetResponseStream in class com.google.gdata.client.http.HttpGDataRequestIOExceptionpublic String getResponseHeader(String headerName)
getResponseHeader in interface com.google.gdata.client.Service.GDataRequestgetResponseHeader in class com.google.gdata.client.http.HttpGDataRequestpublic com.google.gdata.util.ContentType getResponseContentType()
getResponseContentType in interface com.google.gdata.client.Service.GDataRequestgetResponseContentType in class com.google.gdata.client.http.HttpGDataRequestpublic com.google.gdata.data.DateTime getResponseDateHeader(String headerName)
getResponseDateHeader in interface com.google.gdata.client.Service.GDataRequestgetResponseDateHeader in class com.google.gdata.client.http.HttpGDataRequestCopyright © 2018. All rights reserved.