Esempio n. 1
0
 @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);
 }
Esempio n. 2
0
 @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);
   }
 }