Package com.adito.vfs.webdav

Examples of com.adito.vfs.webdav.DAVAuthenticationRequiredException


            uri.setPath(uri.getPath() + (uri.getPath().endsWith("/") ? "" : "/") + DAVUtilities.encodePath(path));
            FileObject fileObject = this.getStore().getRepository().getFileSystemManager().resolveFile(uri.toString(), getOptions(uri));
            return fileObject;
        } catch (FileSystemException fse) {
            if (fse.getCode().equals("vfs.provider.ftp/connect.error")) {
                throw new DAVAuthenticationRequiredException(getMountString());
            }
            throw fse;
        }
    }
View Full Code Here


            uri.setPath(uri.getPath() + (uri.getPath().endsWith("/") ? "" : "/") + DAVUtilities.encodePath(path));
            FileObject fileObject = this.getStore().getRepository().getFileSystemManager().resolveFile(uri.toString());
            return fileObject;
        } catch (FileSystemException fse) {
            if (fse.getCode().equals("vfs.provider.ftp/connect.error")) {
                throw new DAVAuthenticationRequiredException(getMountString());
            }
            throw fse;
        }
    }
View Full Code Here

     */
    public VFSMount getMountFromString(String mountName, LaunchSession launchSession) throws DAVException, DAVAuthenticationRequiredException {

        // Will always require Adito Authentication
        if(launchSession.getSession() == null) {
            throw new DAVAuthenticationRequiredException(WebDAVAuthenticationModule.DEFAULT_REALM);
        }
       
      try {
          File tempDownloadDirectory = CoreUtil.getTempDownloadDirectory(getRepository().getSession());
          if(!mountName.equals(tempDownloadDirectory.getName())) {
View Full Code Here

            uri.setPath(uri.getPath() + (uri.getPath().endsWith("/") ? "" : "/") + DAVUtilities.encodePath(path));
            FileObject fileObject = this.getStore().getRepository().getFileSystemManager().resolveFile(uri.toString(), getOptions(uri));
            return fileObject;
        } catch (FileSystemException fse) {
            if (fse.getCode().equals("vfs.provider.http/connect.error")) {
                throw new DAVAuthenticationRequiredException(getMountString());
            }
            throw fse;
        }
    }
View Full Code Here

                root.getChildren();
            }
            return root;
        } catch (FileSystemException fse) {
            if (fse.getCause().getClass().getName().equals("jcifs.smb.SmbAuthException")) {
                throw new DAVAuthenticationRequiredException(getMountString());
            }
            if (fse.getCause() != null && fse.getCause() instanceof SmbException && ((SmbException) fse.getCause()).getRootCause() != null
                            && "Connection timeout".equals(((SmbException) fse.getCause()).getRootCause().getMessage())) {
                throw new UnknownHostException(uri.getHost());
            }
View Full Code Here

    // 2 = HTTP authentication response
    // 3 = Current users credentials
    // 4 = Guest
    // 5 = Prompt
    int type = 0;
    DAVAuthenticationRequiredException dave = null;
    PasswordCredentials credentials = null;
    boolean hasCachedCredentials = false;

    if (log.isDebugEnabled())
      log.debug("Trying all available credentials for " + getMountString() + path);
View Full Code Here

    // 2 = HTTP authentication response
    // 3 = Current users credentials
    // 4 = Guest
    // 5 = Prompt
    int type = 0;
    DAVAuthenticationRequiredException dave = null;
    PasswordCredentials credentials = null;
    boolean hasCachedCredentials = false;

    if (log.isDebugEnabled())
      log.debug("Trying all available credentials for " + getMountString() + path);
View Full Code Here

   */
  public VFSMount getMountFromString(String mountName, LaunchSession launchSession) throws DAVException, DAVAuthenticationRequiredException {
     
      // Network place mounts will always require authentication
      if(launchSession.getSession() == null) {
          throw new DAVAuthenticationRequiredException(WebDAVAuthenticationModule.DEFAULT_REALM);
      }
     
    try {       
      NetworkPlace resource = (NetworkPlace) NetworkPlacePlugin.NETWORK_PLACE_RESOURCE_TYPE.getResourceByName(mountName,
        getRepository().getSession());
View Full Code Here

TOP

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

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.