Package org.jboss.soa.esb.util

Examples of org.jboss.soa.esb.util.RemoteFileSystem.quit()


    } finally {
      if (fileToSend != null) {
        fileToSend.delete();
      }
      if (rfs != null) {
        rfs.quit();
      }
    }
  }
 
  protected File getFileToSend( final Message message ) throws IOException
View Full Code Here


    {
            EPR epr = ListenerUtil.assembleEpr(config);
      if (epr instanceof FTPEpr)  {
        FTPEpr ftpEpr = (FTPEpr) epr;
        RemoteFileSystem rfs = RemoteFileSystemFactory.getRemoteFileSystem(ftpEpr, true);
        rfs.quit();
      } else {
        throw new GatewayException("This Gateway only accepts FTP and SFTP.");
      }
    }
    catch (RemoteFileSystemException ex)
View Full Code Here

    {
      throw new GatewayException(e);
    } finally
    {
      if (null != rfs)
        rfs.quit();
    }
  }

    @Override
  byte[] getFileContents(File file) throws GatewayException
View Full Code Here

    {
      throw new GatewayException(e);
    } finally
    {
      if (null != rfs)
        rfs.quit();
    }
  }

    @Override
    String getDefaultComposer() {
View Full Code Here

      }
    } catch (Exception e){
      throw new GatewayException(e);
    } finally {
      if (null != rfs)
        rfs.quit();
    }
    return oaRet;
  }

  @Override
View Full Code Here

      }
    } catch (Exception e) {
      throw new GatewayException(e);
    } finally {
      if (null != rfs)
        rfs.quit();
    }
  }
 
  @Override
  protected File getWorkFileName(File file, String suffix )
View Full Code Here

    } catch (Exception e) {
      throw new GatewayException(e);
    } finally {
      if (null != rfs)
        rfs.quit();
    }
  }
 
}
View Full Code Here

                       
                        throw new CourierException(e);
                }
                finally
                {
                    handler.quit() ;
                }
        }

        public byte[] getFileContents(File file) throws CourierException
        {
View Full Code Here

                        {
                            handler.downloadFile(name, name);
                        }
                        finally
                        {
                            handler.quit() ;
                        }
                        File local = new File(_localDir, name);
                        byte[] ba = CourierUtil.bytesFromLocalFile(local);
                        if (!local.delete())
                        {
View Full Code Here

                        {
                            handler.uploadFile(file, name);
                        }
                        finally
                        {
                            handler.quit();
                        }
                        if (!file.delete())
                        {
                            _logger.warn("Could not delete file " + file.getCanonicalPath()) ;
                        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.