@Override public void copyTo(CollectionResource toCollection, String destName) throws NotAuthorizedException, BadRequestException, ConflictException { IFolderAdapter destFolderAdapter = (IFolderAdapter) toCollection; Folder destRemoteFolder = destFolderAdapter.getRemoteFolder(); remoteManager.copyTo(folder, destName, destRemoteFolder); }
@Override public List<? extends com.bradmcevoy.http.Resource> getChildren() throws NotAuthorizedException, BadRequestException { try { return remoteManager.getChildren(getHostName(), folder); } catch (IOException ex) { throw new RuntimeException(ex); } catch (HttpException ex) { throw new RuntimeException(ex); } }