Package org.apache.oodt.cas.protocol.exceptions

Examples of org.apache.oodt.cas.protocol.exceptions.ProtocolException


            LOG.log(Level.WARNING, "Failed to instanciate protocol " + clazz
                + " for " + remoteSite.getURL());
          }
        }
        if (protocol == null)
          throw new ProtocolException("Failed to get appropriate protocol for "
              + remoteSite);
      } else {
        connect(protocol = protocolFactory.newInstance(), remoteSite, false);
      }
      if (allowReuse)
View Full Code Here


            true, remoteSite));
      else
        this.cdToROOT(protocol);
      this.cdToHOME(protocol);
      if (home == null || !home.equals(this.pwd(remoteSite, protocol)))
        throw new ProtocolException("Home directory not the same after cd");
    } catch (Exception e) {
      LOG.log(Level.SEVERE, "Protocol "
          + protocol.getClass().getCanonicalName()
          + " failed compatibility test : " + e.getMessage(), e);
      return false;
View Full Code Here

        protocol.cdHome();
        file = protocol.pwd().getPath() + "/" + file;
      }
      return new RemoteSiteFile(file, isDir, site);
    } catch (Exception e) {
      throw new ProtocolException("Failed to create protocol for " + file
          + " : " + e.getMessage());
    }
  }
View Full Code Here

            MalformedURLException, org.apache.oodt.cas.protocol.exceptions.ProtocolException {
        if (validate(remoteSite))
            protocolHandler.cdToROOT(protocolHandler
                    .getAppropriateProtocolBySite(remoteSite, true));
        else
            throw new ProtocolException("Not a valid remote site " + remoteSite);
    }
View Full Code Here

            MalformedURLException {
        if (validate(remoteSite))
            protocolHandler.cdToHOME(protocolHandler
                    .getAppropriateProtocolBySite(remoteSite, true));
        else
            throw new ProtocolException("Not a valid remote site " + remoteSite);
    }
View Full Code Here

            this
                    .changeToDir(protocolHandler.getProtocolFileFor(remoteSite,
                            protocolHandler.getAppropriateProtocolBySite(
                                    remoteSite, true), dir, true));
        else
            throw new ProtocolException("Not a valid remote site " + remoteSite);
    }
View Full Code Here

        RemoteSite remoteSite = pFile.getSite();
        if (validate(remoteSite))
            protocolHandler.cd(protocolHandler.getAppropriateProtocolBySite(
                    remoteSite, true), pFile);
        else
            throw new ProtocolException("Not a valid remote site " + remoteSite);
    }
View Full Code Here

            throws ProtocolException {
        if (validate(remoteSite))
            return protocolHandler.getHomeDir(remoteSite, protocolHandler
                    .getAppropriateProtocolBySite(remoteSite, true));
        else
            throw new ProtocolException("Not a valid remote site " + remoteSite);
    }
View Full Code Here

        if (validate(remoteSite))
            return protocolHandler.getProtocolFileFor(remoteSite, protocolHandler
                    .getAppropriateProtocolBySite(remoteSite, true), file,
                    isDir);
        else
            throw new ProtocolException("Not a valid remote site " + remoteSite);
    }
View Full Code Here

            MalformedURLException {
        if (validate(remoteSite))
            return protocolHandler.pwd(remoteSite, protocolHandler
                    .getAppropriateProtocolBySite(remoteSite, true));
        else
            throw new ProtocolException("Not a valid remote site " + remoteSite);
    }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.protocol.exceptions.ProtocolException

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.