Package com.dropbox.core.http
Class GoogleAppEngineRequestor
- java.lang.Object
- 
- com.dropbox.core.http.HttpRequestor
- 
- com.dropbox.core.http.GoogleAppEngineRequestor
 
 
- 
 public class GoogleAppEngineRequestor extends HttpRequestor HttpRequestorimplementation that uses Google App Engine URL fetch service. You can only use this if your project includes the App Engine libraries.If your app runs in Google App Engine, it is strongly recommended to use this Requestor to ensure certificate validation is performed on all requests. To use this, pass an instance to the DbxRequestConfigconstructor:DbxRequestConfig config = DbxRequestConfig.newBuilder("MyAppEngineApp/1.0") .withHttpRequestor(new GoogleAppEngineRequestor()) .build(); String accessToken = ...; DbxClientV2 client = new DbxClientV2(config, accessToken);
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.dropbox.core.http.HttpRequestorHttpRequestor.Header, HttpRequestor.Response, HttpRequestor.Uploader
 
- 
 - 
Field Summary- 
Fields inherited from class com.dropbox.core.http.HttpRequestorDEFAULT_CONNECT_TIMEOUT_MILLIS, DEFAULT_READ_TIMEOUT_MILLIS
 
- 
 - 
Constructor SummaryConstructors Constructor Description GoogleAppEngineRequestor()GoogleAppEngineRequestor(com.google.appengine.api.urlfetch.FetchOptions options)GoogleAppEngineRequestor(com.google.appengine.api.urlfetch.FetchOptions options, com.google.appengine.api.urlfetch.URLFetchService service)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequestor.ResponsedoGet(java.lang.String url, java.lang.Iterable<HttpRequestor.Header> headers)com.google.appengine.api.urlfetch.FetchOptionsgetOptions()com.google.appengine.api.urlfetch.URLFetchServicegetService()static com.google.appengine.api.urlfetch.FetchOptionsnewDefaultOptions()Returns a new instance of the defaultFetchOptionsused by this requestor.HttpRequestor.UploaderstartPost(java.lang.String url, java.lang.Iterable<HttpRequestor.Header> headers)HttpRequestor.UploaderstartPut(java.lang.String url, java.lang.Iterable<HttpRequestor.Header> headers)- 
Methods inherited from class com.dropbox.core.http.HttpRequestorstartPostInStreamingMode
 
- 
 
- 
- 
- 
Constructor Detail- 
GoogleAppEngineRequestorpublic GoogleAppEngineRequestor() 
 - 
GoogleAppEngineRequestorpublic GoogleAppEngineRequestor(com.google.appengine.api.urlfetch.FetchOptions options) 
 - 
GoogleAppEngineRequestorpublic GoogleAppEngineRequestor(com.google.appengine.api.urlfetch.FetchOptions options, com.google.appengine.api.urlfetch.URLFetchService service)
 
- 
 - 
Method Detail- 
getOptionspublic com.google.appengine.api.urlfetch.FetchOptions getOptions() 
 - 
getServicepublic com.google.appengine.api.urlfetch.URLFetchService getService() 
 - 
doGetpublic HttpRequestor.Response doGet(java.lang.String url, java.lang.Iterable<HttpRequestor.Header> headers) throws java.io.IOException - Specified by:
- doGetin class- HttpRequestor
- Throws:
- java.io.IOException
 
 - 
startPostpublic HttpRequestor.Uploader startPost(java.lang.String url, java.lang.Iterable<HttpRequestor.Header> headers) throws java.io.IOException - Specified by:
- startPostin class- HttpRequestor
- Throws:
- java.io.IOException
 
 - 
startPutpublic HttpRequestor.Uploader startPut(java.lang.String url, java.lang.Iterable<HttpRequestor.Header> headers) throws java.io.IOException - Specified by:
- startPutin class- HttpRequestor
- Throws:
- java.io.IOException
 
 - 
newDefaultOptionspublic static com.google.appengine.api.urlfetch.FetchOptions newDefaultOptions() Returns a new instance of the defaultFetchOptionsused by this requestor. This method exists primarily sinceFetchOptionsprovides no copy methods.- Returns:
- new instance of default fetch options used by this requestor.
 
 
- 
 
-