Package org.jboss.soa.esb.util

Examples of org.jboss.soa.esb.util.RemoteFileSystemException


        m_oParms.setAttribute(PARMS_CERTIFICATE_NAME, m_oCertificateName);
      }
    }
    catch (Exception e)
    {
      throw new RemoteFileSystemException(e);
    }
  }
View Full Code Here


                {
                    ftpsClient = new FTPSClient() ;
                }
                catch (final NoSuchAlgorithmException nsae)
                {
                    throw new RemoteFileSystemException(nsae) ;
                }
               
                try
                {
                    ftpsClient.setTrustManager(new ESBTrustManager(m_oCertificate)) ;
                }
                catch (final Exception ex)
                {
                    throw new RemoteFileSystemException("Exception creating trust manager", ex) ;
                }
                return ftpsClient ;
        }
View Full Code Here

                final URI uri ;
                try {
                        uri = m_oEpr.getURI();
                } catch (URISyntaxException e) {
                        throw new RemoteFileSystemException(e);
                }

                m_sFtpServer = uri.getHost();

                String[] sa = null;

                if (uri.getUserInfo() != null)
                        sa = uri.getUserInfo().split(":");

                final int saLen = (sa == null ? 0 : sa.length) ;
                switch(saLen)
                {
                case 2:
                    m_sPasswd = sa[1] ;
                case 1:
                    m_sUser = sa[0] ;
                }

                m_sRemoteDir = uri.getPath();

                if ((m_sRemoteDir == null) || (m_sRemoteDir.equals("")))
                        m_sRemoteDir = FtpUtils.getRemoteDir();

                m_iPort = uri.getPort();

                m_sLocalDir = FtpUtils.getLocalDir();

                try
                {
                        m_oCertificate = p_oP.getCertificateURI() ;
                }
                catch (final URISyntaxException urise)
                {
                    throw new RemoteFileSystemException(urise);
                }
                m_sPassphrase = p_oP.getPassphrase() ;

                configTreeFromEpr();
View Full Code Here

                                channel.connect();
       
                                m_oSftpChannel = (ChannelSftp) channel;
       
                                if (!session.isConnected())
                                        throw new RemoteFileSystemException("Can't connect to FTP server");
                        }
                        catch (JSchException ex)
                        {
                                if ((session != null) && session.isConnected())
                                {
                                    session.disconnect() ;
                                }
                                _logger.error("Caught Secure FTP Exception.");
                                _logger.debug("Caught Secure FTP Exception.", ex);
                               
                                throw new RemoteFileSystemException(ex);
                        }
                }
        }
View Full Code Here

                        m_oSftpChannel.cd(getRemoteDir()) ;
                        m_oSftpChannel.rm(p_sFile);
                }
                catch (SftpException ex)
                {
                        throw new RemoteFileSystemException(ex);
                }
        }
View Full Code Here

                {
                        m_oSftpChannel.rm(remoteFile);
                }
                catch (SftpException ex)
                {
                        throw new RemoteFileSystemException(ex);
                }
        }
View Full Code Here

                {
                        m_oSftpChannel.cd(getRemoteDir()) ;
                }
                catch (SftpException ex)
                {
                        throw new RemoteFileSystemException(ex);
                }
                String sSuffix = (null == p_sSuffix) ? "*" : "*" + p_sSuffix;
                final Vector vFileList ;
                try
                {
                        vFileList = m_oSftpChannel.ls(sSuffix);
                }
                catch (SftpException ex)
                {
                        if (ex.id == ChannelSftp.SSH_FX_NO_SUCH_FILE)
                        {
                            return null ;
                        }
                        throw new RemoteFileSystemException(ex);
                }
               
                List<String> lFileList = new ArrayList<String>();
                if (vFileList != null)
                {
View Full Code Here

                        m_oSftpChannel.cd(getRemoteDir()) ;
                        m_oSftpChannel.rename(p_sFrom, p_sTo) ;
                }
                catch (SftpException se)
                {
                        throw new RemoteFileSystemException("Faile to rename file", se) ;
                }
        }
View Full Code Here

                        m_oSftpChannel.cd(getRemoteDir()) ;
                        m_oSftpChannel.rename(from, to);
                }
                catch (SftpException se)
                {
                        throw new RemoteFileSystemException("Faile to rename file", se) ;
                }
        }
View Full Code Here

                    }
                    m_oSftpChannel.rename(sRemoteTmp, p_sRemoteName);
            }
            catch (final IOException ioe)
            {
                throw new RemoteFileSystemException(ioe) ;
            }
            catch (SftpException ex)
            {
                    throw new RemoteFileSystemException(ex);
            }
    }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.util.RemoteFileSystemException

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.