public class DefaultRemoteContentProvider extends RemoteContentProvider
RemoteContentProvider.DownloadingCallback
Constructor and Description |
---|
DefaultRemoteContentProvider() |
Modifier and Type | Method and Description |
---|---|
static RequestBuilder |
addRequestTuner(Url url,
RequestBuilder requestBuilder) |
protected FileType |
adjustFileType(FileType type,
Url url) |
boolean |
canProvideContent(Url url) |
protected <T> T |
connect(Url url,
RequestBuilder requestBuilder,
HttpRequests.RequestProcessor<T> processor) |
protected int |
getDefaultConnectionTimeout() |
boolean |
isUpToDate(Url url,
VirtualFile local) |
protected void |
saveAdditionalData(HttpRequests.Request request,
java.io.File file) |
void |
saveContent(Url url,
java.io.File file,
RemoteContentProvider.DownloadingCallback callback) |
public static RequestBuilder addRequestTuner(Url url, RequestBuilder requestBuilder)
public boolean canProvideContent(Url url)
canProvideContent
in class RemoteContentProvider
public void saveContent(Url url, java.io.File file, RemoteContentProvider.DownloadingCallback callback)
saveContent
in class RemoteContentProvider
protected <T> T connect(Url url, RequestBuilder requestBuilder, HttpRequests.RequestProcessor<T> processor) throws java.io.IOException
java.io.IOException
protected int getDefaultConnectionTimeout()
protected void saveAdditionalData(HttpRequests.Request request, java.io.File file) throws java.io.IOException
java.io.IOException
public boolean isUpToDate(Url url, VirtualFile local)
isUpToDate
in class RemoteContentProvider