public class FtpRunAs extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
FtpRunAs.NoArgMethod<R,T extends Throwable>
NoArgMethod.
|
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG
The Constant LOG.
|
| Constructor and Description |
|---|
FtpRunAs() |
| Modifier and Type | Method and Description |
|---|---|
static <R,T extends Throwable> |
asFtpUser(FtpUser ftpUser,
FtpRunAs.NoArgMethod<R,T> runnable)
Run method as the ftp user.
|
public static <R,T extends Throwable> R asFtpUser(FtpUser ftpUser, FtpRunAs.NoArgMethod<R,T> runnable) throws T extends Throwable
FtpUser.user and back to what it was.R - method return typeT - exception typeftpUser - the ftp userrunnable - the code to execute as FTP userT - the exceptionT extends ThrowableCopyright © 2018 Global Crop Diversity Trust. All rights reserved.