{
throw new CourierTransportException(e);
}
catch (final IOException e)
{
throw new CourierMarshalUnmarshalException(e);
}
catch (final ParserConfigurationException e) // it's no longer thrown so we can ignore it!
{
throw new CourierException(e);
}
}
tmpFile = null;
try
{
Method upload = handler.getClass().getMethod("uploadFile",
new Class[]
{ File.class });
String sDir = FtpUtils.getLocalDir();
File dir = new File(sDir);
String name = message.getHeader().getCall().getMessageID().toString();
name += _inputSuffix;
tmpFile = CourierUtil.messageToLocalFile(dir, message);
File messageFile = new File(dir, name);
FileUtil.renameTo(tmpFile, messageFile);
tmpFile = messageFile;
upload.invoke(handler, new Object[]
{ messageFile });
return true;
}
catch (final IOException ex)
{
throw new CourierMarshalUnmarshalException(ex);
}
catch (final Exception e)
{
throw new CourierException(e);
}