public class BoxHttpDataSource extends DefaultHttpDataSource
connection, dataSpec, DEFAULT_CONNECT_TIMEOUT_MILLIS, DEFAULT_READ_TIMEOUT_MILLIS| Constructor and Description |
|---|
BoxHttpDataSource(BoxSession session,
<any> contentTypePredicate,
BoxFile file) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
interceptResponseCode(int responseCode) |
protected java.net.HttpURLConnection |
makeConnection(DataSpec dataSpec)
Establishes a connection, following redirects to do so where permitted.
|
bytesRead, bytesRemaining, bytesSkipped, clearAllRequestProperties, clearRequestProperty, close, closeConnectionQuietly, getConnection, getContentLength, getResponseHeaders, getUri, handleRedirect, makeConnection, open, read, readInternal, setRequestProperty, skipInternalpublic BoxHttpDataSource(BoxSession session,
<any> contentTypePredicate,
BoxFile file)
protected int interceptResponseCode(int responseCode)
throws BoxException,
HttpDataSourceException
interceptResponseCode in class DefaultHttpDataSourceBoxExceptionHttpDataSourceExceptionprotected java.net.HttpURLConnection makeConnection(DataSpec dataSpec)
throws java.io.IOException
DefaultHttpDataSourcemakeConnection in class DefaultHttpDataSourcedataSpec - The data spec associated with this connection.java.io.IOException - throws IOException if there is an error creating connection.