public class FtpCommandSTOR
extends org.apache.ftpserver.command.AbstractCommand
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
private Relationship |
relationshipSuccess |
private AtomicReference<ProcessSessionFactory> |
sessionFactory |
private CountDownLatch |
sessionFactorySetSignal |
| Constructor and Description |
|---|
FtpCommandSTOR(AtomicReference<ProcessSessionFactory> sessionFactory,
CountDownLatch sessionFactorySetSignal,
Relationship relationshipSuccess) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkDataConnection(org.apache.ftpserver.impl.FtpIoSession ftpSession) |
private void |
checkWritePermission(org.apache.ftpserver.ftplet.FtpFile ftpFile) |
private ProcessSession |
createProcessSession() |
void |
execute(org.apache.ftpserver.impl.FtpIoSession ftpSession,
org.apache.ftpserver.impl.FtpServerContext context,
org.apache.ftpserver.ftplet.FtpRequest request) |
private void |
executeCommand(org.apache.ftpserver.impl.FtpIoSession ftpSession,
org.apache.ftpserver.impl.FtpServerContext context,
org.apache.ftpserver.ftplet.FtpRequest request) |
private String |
getArgument(org.apache.ftpserver.ftplet.FtpRequest request) |
private org.apache.ftpserver.ftplet.FtpFile |
getFtpFile(org.apache.ftpserver.impl.FtpIoSession ftpSession,
String fileName) |
private String |
getPath(org.apache.ftpserver.ftplet.FtpFile ftpFile) |
private ProcessSessionFactory |
getProcessSessionFactory() |
private org.apache.ftpserver.ftplet.DataConnection |
openDataConnection(org.apache.ftpserver.impl.FtpIoSession ftpSession,
org.apache.ftpserver.ftplet.FtpFile ftpFile) |
private void |
sendFileStatusOkay(org.apache.ftpserver.impl.FtpIoSession ftpSession,
org.apache.ftpserver.impl.FtpServerContext context,
org.apache.ftpserver.ftplet.FtpRequest request,
String fileAbsolutePath) |
private void |
transferData(org.apache.ftpserver.ftplet.DataConnection dataConnection,
org.apache.ftpserver.impl.FtpIoSession ftpSession,
org.apache.ftpserver.impl.FtpServerContext context,
org.apache.ftpserver.ftplet.FtpRequest request,
org.apache.ftpserver.ftplet.FtpFile ftpFile) |
private static final org.slf4j.Logger LOG
private final AtomicReference<ProcessSessionFactory> sessionFactory
private final CountDownLatch sessionFactorySetSignal
private final Relationship relationshipSuccess
public FtpCommandSTOR(AtomicReference<ProcessSessionFactory> sessionFactory, CountDownLatch sessionFactorySetSignal, Relationship relationshipSuccess)
public void execute(org.apache.ftpserver.impl.FtpIoSession ftpSession,
org.apache.ftpserver.impl.FtpServerContext context,
org.apache.ftpserver.ftplet.FtpRequest request)
private void executeCommand(org.apache.ftpserver.impl.FtpIoSession ftpSession,
org.apache.ftpserver.impl.FtpServerContext context,
org.apache.ftpserver.ftplet.FtpRequest request)
throws FtpCommandException
FtpCommandExceptionprivate String getArgument(org.apache.ftpserver.ftplet.FtpRequest request) throws FtpCommandException
FtpCommandExceptionprivate void checkDataConnection(org.apache.ftpserver.impl.FtpIoSession ftpSession)
throws FtpCommandException
FtpCommandExceptionprivate org.apache.ftpserver.ftplet.FtpFile getFtpFile(org.apache.ftpserver.impl.FtpIoSession ftpSession,
String fileName)
throws FtpCommandException
FtpCommandExceptionprivate void checkWritePermission(org.apache.ftpserver.ftplet.FtpFile ftpFile)
throws FtpCommandException
FtpCommandExceptionprivate void sendFileStatusOkay(org.apache.ftpserver.impl.FtpIoSession ftpSession,
org.apache.ftpserver.impl.FtpServerContext context,
org.apache.ftpserver.ftplet.FtpRequest request,
String fileAbsolutePath)
private org.apache.ftpserver.ftplet.DataConnection openDataConnection(org.apache.ftpserver.impl.FtpIoSession ftpSession,
org.apache.ftpserver.ftplet.FtpFile ftpFile)
throws FtpCommandException
FtpCommandExceptionprivate void transferData(org.apache.ftpserver.ftplet.DataConnection dataConnection,
org.apache.ftpserver.impl.FtpIoSession ftpSession,
org.apache.ftpserver.impl.FtpServerContext context,
org.apache.ftpserver.ftplet.FtpRequest request,
org.apache.ftpserver.ftplet.FtpFile ftpFile)
throws FtpCommandException
FtpCommandExceptionprivate String getPath(org.apache.ftpserver.ftplet.FtpFile ftpFile)
private ProcessSession createProcessSession() throws InterruptedException, TimeoutException
InterruptedExceptionTimeoutExceptionprivate ProcessSessionFactory getProcessSessionFactory() throws InterruptedException, TimeoutException
InterruptedExceptionTimeoutExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.