Package com.adito.vfs.webdav

Examples of com.adito.vfs.webdav.DAVException


        VFSLockManager.getInstance().lock(resource, transaction.getSessionInfo(), false, false, handle);
        try {
            /* Check depth */
            int depth = transaction.getDepth();
            if (depth > 1)
                throw new DAVException(403, "Invalid depth");

            if(SystemProperties.get("adito.disableFolderBrowsing", "true").equals("true") && !resource.isBrowsable()) {
              transaction.getResponse().sendError(404, "Not Found");
              return;
            }
View Full Code Here


            throw new Exception("No permission.");
          }
          return new DownloadsStoreMount(launchSession, tempDownloadDirectory);
      }
      catch(Exception e) {
          throw new DAVException(DAVStatus.SC_INTERNAL_SERVER_ERROR, e.getMessage());
      }
    }
View Full Code Here

     */
    public VFSResource getStoreResource() throws DAVException {
        try {
            return new AbstractStoreResource(getName(), repository);
        } catch (URISyntaxException e) {
            throw new DAVException(DAVStatus.SC_INTERNAL_SERVER_ERROR, "Failed to create store resource.", e);
        }
    }
View Full Code Here

            else {
                throw new IOException("DAV resource is not a true file.");
            }
        } catch (IOException e) {
            String message = VfsUtils.maskSensitiveArguments("Unable to create temporary file. " + e.getMessage());
            throw new DAVException(507, message, resource);
        }
    }
View Full Code Here

            /* Send notifications to all listeners of the repository */
            this.resource.getMount().getStore().getRepository().notify(this.resource, event);

        } catch (IOException e) {
            String message = "Error processing temporary file";
            throw new DAVException(507, message, e, this.resource);
        } finally {
            this.abort();
        }
    }
View Full Code Here

        try {
            this.output.flush();
        } catch (IOException e) {
            this.abort();
            String message = "Unable to flush buffers";
            throw new DAVException(507, message, e, this.resource);
        }
    }
View Full Code Here

        try {
            this.output.write(b);
        } catch (IOException e) {
            this.abort();
            String message = "Unable to write data";
            throw new DAVException(507, message, e, this.resource);
        }
    }
View Full Code Here

        try {
            this.output.write(b);
        } catch (IOException e) {
            this.abort();
            String message = "Unable to write data";
            throw new DAVException(507, message, e, this.resource);
        }
    }
View Full Code Here

        try {
            this.output.write(b, o, l);
        } catch (IOException e) {
            this.abort();
            String message = "Unable to write data";
            throw new DAVException(507, message, e, this.resource);
        }
    }
View Full Code Here

            try {
                //super.process(transaction, resource);
              DAVProcessor processor = DAVServlet.getDAVProcessor(transaction.getRequest());
              URI target = transaction.getDestination();
              if (target == null)
                    throw new DAVException(412, "No destination");
              dest = processor.getRepository().getResource(resource.getLaunchSession(), target.getPath(), transaction.getCredentials());
             
              VFSLockManager.getInstance().lock(resource, transaction.getSessionInfo(), true, false, handle);
             
              resource.move(dest, true);
View Full Code Here

TOP

Related Classes of com.adito.vfs.webdav.DAVException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.