Class FtpEndpointOptions

Namespace: redb.Route.Ftp
Assembly: redb.Route.Ftp.dll

Endpoint options for FTP transport. All properties are auto-bound from URI query parameters.

URI format: ftp:///remote/path?host=server&port=21&username=admin&password=secret&...


Inherits shared polling, post-processing, idempotency, and producer options from
. Adds FTP-specific: passive mode, FTPS/TLS,
transfer type, and more.

public class FtpEndpointOptions : RemoteFileEndpointOptions

Inheritance

Inherited Members

EndpointOptions.BindableOptions(Type),EndpointOptions.BindFromUri(IReadOnlyDictionary<string, string>),EndpointOptions.IsLenient(Type),EndpointOptions.OptionValueHint(string),EndpointOptions.ResolveOption(string?, IExchange),EndpointOptions.RoleOf(PropertyInfo),EndpointOptions.UnknownParameterHint(string),EndpointOptions.UnmappedParameters,EndpointOptions.Validate(),EndpointOptions.WrittenBesideConnectionFactory(Type, EndpointUri),EndpointOptions.WrittenForOtherRole(Type, EndpointUri, EndpointRole),GenericFileEndpointOptions.AllowNullBody,GenericFileEndpointOptions.AntExclude,GenericFileEndpointOptions.AntFilterCaseSensitive,GenericFileEndpointOptions.AntInclude,GenericFileEndpointOptions.AppendChars,GenericFileEndpointOptions.AutoCreate,GenericFileEndpointOptions.BackoffErrorThreshold,GenericFileEndpointOptions.BackoffIdleThreshold,GenericFileEndpointOptions.BackoffMultiplier,GenericFileEndpointOptions.BackoffOnFailedExchanges,GenericFileEndpointOptions.Charset,GenericFileEndpointOptions.Delay,GenericFileEndpointOptions.Delete,GenericFileEndpointOptions.DoneFileName,GenericFileEndpointOptions.EagerDeleteTargetFile,GenericFileEndpointOptions.Exclude,GenericFileEndpointOptions.FileExist,GenericFileEndpointOptions.FileName,GenericFileEndpointOptions.Filter,GenericFileEndpointOptions.FilterDirectory,GenericFileEndpointOptions.FilterFile,GenericFileEndpointOptions.FilterInstance,GenericFileEndpointOptions.Idempotent,GenericFileEndpointOptions.IdempotentKey,GenericFileEndpointOptions.Include,GenericFileEndpointOptions.InitialDelay,GenericFileEndpointOptions.MaxDepth,GenericFileEndpointOptions.MaxMessagesPerPoll,GenericFileEndpointOptions.MinAge,GenericFileEndpointOptions.MinDepth,GenericFileEndpointOptions.MoveExisting,GenericFileEndpointOptions.MoveTo,GenericFileEndpointOptions.Noop,GenericFileEndpointOptions.PreMove,GenericFileEndpointOptions.Recursive,GenericFileEndpointOptions.SortBy,GenericFileEndpointOptions.StreamBody,GenericFileEndpointOptions.TempFileName,GenericFileEndpointOptions.TempPrefix,GenericFileEndpointOptions.ValidateCommon(),RemoteFileEndpointOptions.ConnectionFactory,RemoteFileEndpointOptions.ConnectionTimeout,RemoteFileEndpointOptions.Disconnect,RemoteFileEndpointOptions.Host,RemoteFileEndpointOptions.MaxAge,RemoteFileEndpointOptions.MaximumReconnectAttempts,RemoteFileEndpointOptions.MoveFailed,RemoteFileEndpointOptions.OperationTimeout,RemoteFileEndpointOptions.Password,RemoteFileEndpointOptions.Port,RemoteFileEndpointOptions.ReconnectDelay,RemoteFileEndpointOptions.SendEmptyMessageWhenIdle,RemoteFileEndpointOptions.StartingDirectoryMustExist,RemoteFileEndpointOptions.Username,RemoteFileEndpointOptions.ValidateRemote()

Properties

Flatten

If true, flatten nested directory structures — all files are uploaded to the base directory.

public bool Flatten { get; set; }

IgnoreFileNotFoundOrPermissionError

If true, silently ignore file-not-found or permission errors during listing.

public bool IgnoreFileNotFoundOrPermissionError { get; set; }

JailStartingDirectory

If true, prevent the producer from writing outside the base directory.

public bool JailStartingDirectory { get; set; }

MoveExistingFileStrategy

Strategy for moving existing files when FileExist=Move. (default: Timestamp)

public FtpMoveExistingStrategy MoveExistingFileStrategy { get; set; }

PassiveMode

Use passive mode for data connections. Most firewalls/NATs require passive mode.

public bool PassiveMode { get; set; }

Port

FTP server port. (default: 21)

public override int Port { get; set; }

TransferType

Transfer type: Binary (raw bytes, default) or Ascii (line-ending conversion).

public FtpTransferType TransferType { get; set; }

UseFtps

Enable FTP over TLS (FTPS). When true, uses explicit TLS negotiation.

public bool UseFtps { get; set; }

ValidateCertificate

If true, accept any server certificate (useful for self-signed certs in dev/test).

public bool ValidateCertificate { get; set; }

Methods

Validate()

Validates required parameters and constraints. Called after BindFromUri.

public override void Validate()

Constructors

FtpEndpointOptions()

Creates FTP endpoint options with protocol-specific defaults.