@Test public void testInit() throws Exception { FtpProducer ftpProducer = new FtpProducer(); ftpProducer.setBuildDirectory("buildDir"); ftpProducer.setDestDirectory("destDir"); ftpProducer.init(); ftpProducer.close(); ftpProducer.setReplyDirectory("/replyDir"); ftpProducer.init(); ftpProducer.close(); ftpProducer.setReplyDirectory("replyDir"); ftpProducer.init(); ftpProducer.close(); ftpProducer.setReplyProcDirectory("replyProcDir"); ftpProducer.init(); ftpProducer.close(); ftpProducer.setReplyProcDirectory("/replyProcDir"); ftpProducer.init(); ftpProducer.close(); }
@Override public void init() throws CoreException { try { Args.notNull(getDestDirectory(), "destDirectory"); Args.notNull(getBuildDirectory(), "buildDirectory"); if (!destDirectory.startsWith(SLASH)) { destDirectory = SLASH + destDirectory; } if (!buildDirectory.startsWith(SLASH)) { buildDirectory = SLASH + buildDirectory; } if (replyDirectory != null && !replyDirectory.startsWith(SLASH)) { replyDirectory = SLASH + replyDirectory; } if (replyProcDirectory != null && !replyProcDirectory.startsWith(SLASH)) { replyProcDirectory = SLASH + replyProcDirectory; } } catch (Exception e) { throw ExceptionHelper.wrapCoreException(e); } }
FtpProducer extends RequestReplyProducerImp { @Override public void init() throws CoreException { try { Args.notNull(getDestDirectory(), "destDirectory"); Args.notNull(getBuildDirectory(), "buildDirectory"); if (!destDirectory.startsWith(SLASH)) { destDirectory = SLASH + destDirectory; } if (!buildDirectory.startsWith(SLASH)) { buildDirectory = SLASH + buildDirectory; } if (replyDirectory != null && !replyDirectory.startsWith(SLASH)) { replyDirectory = SLASH + replyDirectory; } if (replyProcDirectory != null && !replyProcDirectory.startsWith(SLASH)) { replyProcDirectory = SLASH + replyProcDirectory; } } catch (Exception e) { throw ExceptionHelper.wrapCoreException(e); } } }
FtpProducer extends RequestReplyProducerImp { @Override public void init() throws CoreException { try { Args.notNull(getDestDirectory(), "destDirectory"); Args.notNull(getBuildDirectory(), "buildDirectory"); if (!destDirectory.startsWith(SLASH)) { destDirectory = SLASH + destDirectory; } if (!buildDirectory.startsWith(SLASH)) { buildDirectory = SLASH + buildDirectory; } if (replyDirectory != null && !replyDirectory.startsWith(SLASH)) { replyDirectory = SLASH + replyDirectory; } if (replyProcDirectory != null && !replyProcDirectory.startsWith(SLASH)) { replyProcDirectory = SLASH + replyProcDirectory; } } catch (Exception e) { throw ExceptionHelper.wrapCoreException(e); } } FtpProducer(); }
FtpProducer extends RequestReplyProducerImp { @Override public void init() throws CoreException { try { Args.notNull(getDestDirectory(), "destDirectory"); Args.notNull(getBuildDirectory(), "buildDirectory"); if (!destDirectory.startsWith(SLASH)) { destDirectory = SLASH + destDirectory; } if (!buildDirectory.startsWith(SLASH)) { buildDirectory = SLASH + buildDirectory; } if (replyDirectory != null && !replyDirectory.startsWith(SLASH)) { replyDirectory = SLASH + replyDirectory; } if (replyProcDirectory != null && !replyProcDirectory.startsWith(SLASH)) { replyProcDirectory = SLASH + replyProcDirectory; } } catch (Exception e) { throw ExceptionHelper.wrapCoreException(e); } } FtpProducer(); @Override void init(); @Override void doProduce(AdaptrisMessage msg, String endpoint); @Override void prepare(); String getBuildDirectory(); String getDestDirectory(); void setBuildDirectory(String string); void setDestDirectory(String string); @Deprecated @Removal(version = "4.0") boolean replyUsesEncoder(); FileNameCreator getFilenameCreator(); void setFilenameCreator(FileNameCreator creator); @Override String endpoint(AdaptrisMessage msg); }
FtpProducer extends RequestReplyProducerImp { @Override public void init() throws CoreException { try { Args.notNull(getDestDirectory(), "destDirectory"); Args.notNull(getBuildDirectory(), "buildDirectory"); if (!destDirectory.startsWith(SLASH)) { destDirectory = SLASH + destDirectory; } if (!buildDirectory.startsWith(SLASH)) { buildDirectory = SLASH + buildDirectory; } if (replyDirectory != null && !replyDirectory.startsWith(SLASH)) { replyDirectory = SLASH + replyDirectory; } if (replyProcDirectory != null && !replyProcDirectory.startsWith(SLASH)) { replyProcDirectory = SLASH + replyProcDirectory; } } catch (Exception e) { throw ExceptionHelper.wrapCoreException(e); } } FtpProducer(); @Override void init(); @Override void doProduce(AdaptrisMessage msg, String endpoint); @Override void prepare(); String getBuildDirectory(); String getDestDirectory(); void setBuildDirectory(String string); void setDestDirectory(String string); @Deprecated @Removal(version = "4.0") boolean replyUsesEncoder(); FileNameCreator getFilenameCreator(); void setFilenameCreator(FileNameCreator creator); @Override String endpoint(AdaptrisMessage msg);  }