クラス AbstractRemoteFileOutboundGateway<F>
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.MessageHandlerSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.handler.AbstractMessageProducingHandler
org.springframework.integration.handler.AbstractReplyProducingMessageHandler
org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway<F>
- 型パラメーター:
F
- ファイル型。
- 実装されたすべてのインターフェース:
org.reactivestreams.Subscriber<Message<?>>
、Aware
、BeanClassLoaderAware
、BeanFactoryAware
、BeanNameAware
、DisposableBean
、InitializingBean
、ApplicationContextAware
、Ordered
、ComponentSourceAware
、ExpressionCapable
、Orderable
、MessageProducer
、HeaderPropagationAware
、IntegrationPattern
、NamedComponent
、IntegrationManagement
、TrackableComponent
、MessageHandler
、reactor.core.CoreSubscriber<Message<?>>
public abstract class AbstractRemoteFileOutboundGateway<F>
extends AbstractReplyProducingMessageHandler
リモートファイル操作を実行する送信ゲートウェイの基本クラス。
- 導入:
- 2.1
- 作成者:
- Gary Russell, Artem Bilan, Mauro Molinari
ネストされたクラスのサマリー
ネストされたクラス修飾子と型クラス説明static enum
ゲートウェイでサポートされているコマンドの列挙。static enum
さまざまなコマンドでサポートされているオプションの列挙。クラス org.springframework.integration.handler.AbstractReplyProducingMessageHandler から継承されたネストクラス / インターフェース
AbstractReplyProducingMessageHandler.RequestHandler
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverrides
フィールドのサマリー
クラス org.springframework.integration.handler.AbstractMessageProducingHandler から継承されたフィールド
messagingTemplate
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, logger
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
インターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
コンストラクターの概要
コンストラクターコンストラクター説明AbstractRemoteFileOutboundGateway
(RemoteFileTemplate<F> remoteFileTemplate, StringSE command, StringSE expression) 提供された リモートファイルテンプレート、コマンド ('ls'、'get' など)、リモートパス (ファイルまたはディレクトリ) を決定する式を使用してインスタンスを構築します。AbstractRemoteFileOutboundGateway
(RemoteFileTemplate<F> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, StringSE expressionArg) 提供された リモートファイルテンプレート、コマンド ('ls'、'get' など)、リモートパス (ファイルまたはディレクトリ) を決定する式を使用してインスタンスを構築します。AbstractRemoteFileOutboundGateway
(RemoteFileTemplate<F> remoteFileTemplate, MessageSessionCallback<F, ?> messageSessionCallback) 提供されたリモートファイルテンプレートと、セッションで操作を実行するためのコールバックを使用してインスタンスを構築します。AbstractRemoteFileOutboundGateway
(SessionFactory<F> sessionFactory, StringSE command, StringSE expression) 提供されたセッションファクトリ、コマンド ('ls'、'get' など)、リモートパス (ファイルまたはディレクトリ) を決定する式を使用してインスタンスを構築します。AbstractRemoteFileOutboundGateway
(SessionFactory<F> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, StringSE expression) 提供されたセッションファクトリ、コマンド ('ls'、'get' など)、リモートパス (ファイルまたはディレクトリ) を決定する式を使用してインスタンスを構築します。AbstractRemoteFileOutboundGateway
(SessionFactory<F> sessionFactory, MessageSessionCallback<F, ?> messageSessionCallback) 提供されたセッションファクトリとセッションで操作を実行するためのコールバックを使用してインスタンスを構築します。メソッドのサマリー
修飾子と型メソッド説明protected abstract ListSE
<AbstractFileInfo<F>> asFileInfoList
(CollectionSE<F> files) protected void
assertRemoteFileTemplateMutability
(StringSE propertyName) protected void
doChmod
(RemoteFileOperations<F> remoteFileOperations, StringSE path, int chmodToSet) 転送後にリモートファイルでモードを設定します。デフォルトの実装は何もしません。protected void
doInit()
protected abstract F
enhanceNameWithSubDirectory
(F file, StringSE directory) protected final F
filterFile
(F file) filterFiles
(F[] files) filterMputFiles
(FileSE[] files) protected FileSE
get
(Message<?> message, Session<F> session, StringSE remoteDir, StringSE remoteFilePath, StringSE remoteFilename, F fileInfoParam) リモートファイルを構成済みのローカルディレクトリにコピーします。protected abstract StringSE
getFilename
(F file) protected abstract StringSE
getFilename
(AbstractFileInfo<F> file) protected StringSE
getFullFileName
(StringSE remoteDirectory, F remoteFile) デフォルトでは、このメソッドは リモートファイル名を使用して リモートディレクトリにアクセスし、完全な リモートファイルパスを構築します。protected abstract long
getModified
(F file) protected StringSE
getRemoteFilename
(StringSE remoteFilePath) protected final RemoteFileTemplate
<F> protected ObjectSE
handleRequestMessage
(Message<?> requestMessage) サブクラスはこのメソッドを実装して、リクエストメッセージを処理する必要があります。boolean
protected abstract boolean
isDirectory
(F file) protected abstract boolean
protected ListSE
<?> リモートファイルをローカル表現にリストします。提供されたディレクトリからリモートサーバーにファイルを再帰的に配置します。protected boolean
リモートパスを別のパスに移動します。指定されたディレクトリのリモートファイル名を一覧表示します。protected void
protected void
purgeLinks
(ListSE<F> lsFiles) protected StringSE
メッセージに基づいてファイルをリモートサーバーに書き込みます。protected final void
remoteFileTemplateExplicitlySet
(boolean remoteFileTemplateExplicitlySet) protected boolean
指定されたパスに対してリモート削除を実行します。void
setAutoCreateDirectory
(boolean autoCreateDirectory) ファイルをリモートシステムに送信するときに、リモートディレクトリを自動的に作成するかどうかを決定します。void
setAutoCreateLocalDirectory
(boolean autoCreateLocalDirectory) ローカルディレクトリを自動的に作成する必要があるかどうかを識別するboolean
フラグ。void
setCharset
(StringSE charset) 文字列ペイロードをリモートファイルのコンテンツとしてバイトに変換するときに使用する文字セットを設定します。void
setChmod
(int chmod) アップロード後にファイルのアクセス許可を設定します。void
setChmodOctal
(StringSE chmod) Spring XML の利便性のためのストリング setter。void
setFileExistsMode
(FileExistsMode fileExistsMode) ファイルがすでにローカルに存在する場合に GET および MGET 操作を使用する場合、またはファイルがリモートシステムに存在する場合に PUT および MPUT を使用する場合に実行するアクションを決定します。void
setFileNameExpression
(Expression fileNameExpression) ファイル名の式を設定して、リモートファイルへの絶対パスを決定します。void
setFileNameGenerator
(FileNameGenerator fileNameGenerator) ファイルをリモートシステムに転送するときに使用されるリモートファイル名の生成に使用されるファイル名ジェネレーターを設定します。void
setFilter
(FileListFilter<F> filter) リモートファイルをフィルタリングするようにFileListFilter
を設定します。void
setLocalDirectory
(FileSE localDirectory) リモートファイルの転送先のディレクトリパスを指定します。void
setLocalDirectoryExpression
(Expression localDirectoryExpression) リモートファイルの転送先のディレクトリパスを評価する SpEL 式を指定します。void
setLocalDirectoryExpressionString
(StringSE localDirectoryExpression) リモートファイルの転送先のディレクトリパスを評価する SpEL 式を指定します。void
setLocalFilenameGeneratorExpression
(Expression localFilenameGeneratorExpression) ダウンロード後にローカルファイルの名前を変更するための SpEL 式を指定します。void
setLocalFilenameGeneratorExpressionString
(StringSE localFilenameGeneratorExpression) ダウンロード後にローカルファイルの名前を変更するための SpEL 式を指定します。void
setMputFilter
(FileListFilter<FileSE> filter) MPUT
コマンドの使用時にローカルファイルシステムビューに対して実行されるFileListFilter
。void
setOption
(AbstractRemoteFileOutboundGateway.Option... options) さまざまなゲートウェイコマンドのオプションの配列を指定します。void
setOptions
(StringSE options) さまざまなゲートウェイコマンドのオプションをスペース区切りの文字列として指定します。void
setRemoteDirectoryExpression
(Expression remoteDirectoryExpression) ファイルの送信先となるリモートディレクトリの判別に使用されるリモートディレクトリ式を設定します。void
setRemoteFileSeparator
(StringSE remoteFileSeparator) リモートファイルを処理するときにファイル区切り文字を設定します。デフォルト '/'。void
setRenameExpression
(Expression renameExpression) 転送中にファイル名を変更するための SpEL 式を指定します。void
setRenameExpressionString
(StringSE renameExpression) 転送中にファイル名を変更するための SpEL 式を指定します。void
setTemporaryFileSuffix
(StringSE temporaryFileSuffix) ファイルをリモートシステムに転送するときに使用する一時的なサフィックスを設定します。void
setTemporaryRemoteDirectoryExpression
(Expression temporaryRemoteDirectoryExpression) 一時的なリモートディレクトリ式を設定します。ファイルをリモートシステムに転送するときに使用されます。void
setUseTemporaryFileName
(boolean useTemporaryFileName) リモートシステムにファイルを送信するときに一時ファイル名を使用するかどうかを設定します。クラス org.springframework.integration.handler.AbstractReplyProducingMessageHandler から継承されたメソッド
doInvokeAdvisedRequestHandler, getBeanClassLoader, getIntegrationPatternType, getRequiresReply, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setRequiresReply
クラス org.springframework.integration.handler.AbstractMessageProducingHandler から継承されたメソッド
addNotPropagatedHeaders, createOutputMessage, getNotPropagatedHeaders, getOutputChannel, isAsync, messageBuilderForReply, produceOutput, resolveErrorChannel, sendErrorMessage, sendOutput, sendOutputs, setAsync, setNotPropagatedHeaders, setOutputChannel, setOutputChannelName, setSendTimeout, setupMessageProcessor, shouldCopyRequestHeaders, shouldSplitOutput, updateNotPropagatedHeaders
クラス org.springframework.integration.handler.AbstractMessageHandler から継承されたメソッド
handleMessage, onComplete, onError, onNext, onSubscribe, setObservationConvention
クラス org.springframework.integration.handler.MessageHandlerSupport から継承されたメソッド
buildSendTimer, destroy, getComponentType, getManagedName, getManagedType, getMetricsCaptor, getObservationRegistry, getOrder, getOverrides, isLoggingEnabled, isObserved, registerMetricsCaptor, registerObservationRegistry, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrack
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSE
インターフェース reactor.core.CoreSubscriber から継承されたメソッド
currentContext
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
getThisAs
インターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentName
コンストラクターの詳細
AbstractRemoteFileOutboundGateway
public AbstractRemoteFileOutboundGateway(SessionFactory<F> sessionFactory, MessageSessionCallback<F, ?> messageSessionCallback) 提供されたセッションファクトリとセッションで操作を実行するためのコールバックを使用してインスタンスを構築します。- パラメーター:
sessionFactory
- セッションファクトリ。messageSessionCallback
- コールバック。
AbstractRemoteFileOutboundGateway
public AbstractRemoteFileOutboundGateway(RemoteFileTemplate<F> remoteFileTemplate, MessageSessionCallback<F, ?> messageSessionCallback) 提供されたリモートファイルテンプレートと、セッションで操作を実行するためのコールバックを使用してインスタンスを構築します。- パラメーター:
remoteFileTemplate
- リモートファイルテンプレート。messageSessionCallback
- コールバック。
AbstractRemoteFileOutboundGateway
public AbstractRemoteFileOutboundGateway(SessionFactory<F> sessionFactory, StringSE command, @Nullable StringSE expression) 指定されたセッションファクトリ、コマンド ('ls'、'get' など)、リモートパス (ファイルまたはディレクトリ) を決定する式を使用してインスタンスを構築します。式は、ls
およびnlst
コマンドの リモートディレクトリとして扱われ、リモートファイルプロトコルがルートディレクトリ (またはホームを使用) の意味でサポートしている場合はnull
にすることができます。put
およびmput
コマンドはこの式を無視し、ペイロードに完全に依存します。式が指定されていない場合は、payload
にフォールバックします。- パラメーター:
sessionFactory
- セッションファクトリ。command
- コマンド。expression
- リモートパス。
AbstractRemoteFileOutboundGateway
public AbstractRemoteFileOutboundGateway(SessionFactory<F> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, @Nullable StringSE expression) 指定されたセッションファクトリ、コマンド ('ls'、'get' など)、リモートパス (ファイルまたはディレクトリ) を決定する式を使用してインスタンスを構築します。式は、ls
およびnlst
コマンドの リモートディレクトリとして扱われ、リモートファイルプロトコルがルートディレクトリ (またはホームを使用) の意味でサポートしている場合はnull
にすることができます。put
およびmput
コマンドはこの式を無視し、ペイロードに完全に依存します。式が指定されていない場合は、payload
にフォールバックします。- パラメーター:
sessionFactory
- セッションファクトリ。command
- コマンド。expression
- リモートパス。
AbstractRemoteFileOutboundGateway
public AbstractRemoteFileOutboundGateway(RemoteFileTemplate<F> remoteFileTemplate, StringSE command, @Nullable StringSE expression) 提供された リモートファイルテンプレート、コマンド ('ls'、'get' など)、リモートパス (ファイルまたはディレクトリ) を決定する式を使用してインスタンスを構築します。式は、ls
およびnlst
コマンドの リモートディレクトリとして扱われ、リモートファイルプロトコルがルートディレクトリの意味 (またはホームの使用) でサポートしている場合はnull
にすることができます。put
およびmput
コマンドはこの式を無視し、ペイロードに完全に依存します。式が指定されていない場合は、payload
にフォールバックします。- パラメーター:
remoteFileTemplate
- リモートファイルテンプレート。command
- コマンド。expression
- リモートパス。
AbstractRemoteFileOutboundGateway
public AbstractRemoteFileOutboundGateway(RemoteFileTemplate<F> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, @Nullable StringSE expressionArg) 提供された リモートファイルテンプレート、コマンド ('ls'、'get' など)、リモートパス (ファイルまたはディレクトリ) を決定する式を使用してインスタンスを構築します。式は、ls
およびnlst
コマンドの リモートディレクトリとして扱われ、リモートファイルプロトコルがルートディレクトリの意味 (またはホームの使用) でサポートしている場合はnull
にすることができます。put
およびmput
コマンドはこの式を無視し、ペイロードに完全に依存します。式が指定されていない場合は、payload
にフォールバックします。- パラメーター:
remoteFileTemplate
- リモートファイルテンプレート。command
- コマンド。expressionArg
- リモートパス。
メソッドの詳細
remoteFileTemplateExplicitlySet
protected final void remoteFileTemplateExplicitlySet(boolean remoteFileTemplateExplicitlySet) assertRemoteFileTemplateMutability
setOptions
さまざまなゲートウェイコマンドのオプションをスペース区切りの文字列として指定します。- パラメーター:
options
- 設定するオプション- 関連事項:
setOption
さまざまなゲートウェイコマンドのオプションの配列を指定します。- パラメーター:
options
- 使用するAbstractRemoteFileOutboundGateway.Option
配列。- 導入:
- 5.0
- 関連事項:
setRemoteFileSeparator
リモートファイルを処理するときにファイル区切り文字を設定します。デフォルト '/'。- パラメーター:
remoteFileSeparator
- セパレータ。- 関連事項:
setLocalDirectory
リモートファイルの転送先のディレクトリパスを指定します。- パラメーター:
localDirectory
- 設定する localDirectory
setLocalDirectoryExpression
リモートファイルの転送先のディレクトリパスを評価する SpEL 式を指定します。- パラメーター:
localDirectoryExpression
- ローカルディレクトリを決定する SpEL。
setLocalDirectoryExpressionString
リモートファイルの転送先のディレクトリパスを評価する SpEL 式を指定します。- パラメーター:
localDirectoryExpression
- ローカルディレクトリを決定する SpEL。- 導入:
- 5.0
setAutoCreateLocalDirectory
public void setAutoCreateLocalDirectory(boolean autoCreateLocalDirectory) ローカルディレクトリを自動的に作成する必要があるかどうかを識別するboolean
フラグ。デフォルトはtrue
です。- パラメーター:
autoCreateLocalDirectory
- 設定する autoCreateLocalDirectory
setTemporaryFileSuffix
リモートシステムにファイルを転送するときに使用する一時的なサフィックスを設定します。デフォルト.writing
。- パラメーター:
temporaryFileSuffix
- 設定する temporaryFileSuffix- 関連事項:
setAutoCreateDirectory
public void setAutoCreateDirectory(boolean autoCreateDirectory) ファイルをリモートシステムに送信するときに、リモートディレクトリを自動的に作成するかどうかを決定します。- パラメーター:
autoCreateDirectory
- ディレクトリを作成する場合は true。- 導入:
- 5.2
- 関連事項:
setRemoteDirectoryExpression
ファイルの送信先となるリモートディレクトリの判別に使用されるリモートディレクトリ式を設定します。- パラメーター:
remoteDirectoryExpression
- リモートディレクトリ式。- 導入:
- 5.2
- 関連事項:
setTemporaryRemoteDirectoryExpression
一時的なリモートディレクトリ式を設定します。ファイルをリモートシステムに転送するときに使用されます。転送に成功すると、remoteDirectoryExpression
を使用してファイルの名前が変更されます。- パラメーター:
temporaryRemoteDirectoryExpression
- 一時的なリモートディレクトリ式。- 導入:
- 5.2
- 関連事項:
setFileNameExpression
ファイル名の式を設定して、リモートファイルへの絶対パスを決定します。- パラメーター:
fileNameExpression
- ファイル名式。- 導入:
- 5.2
- 関連事項:
setUseTemporaryFileName
public void setUseTemporaryFileName(boolean useTemporaryFileName) リモートシステムにファイルを送信するときに一時ファイル名を使用するかどうかを設定します。- パラメーター:
useTemporaryFileName
- 一時ファイル名を使用する場合は true。- 導入:
- 5.2
- 関連事項:
setFileNameGenerator
ファイルをリモートシステムに転送するときに使用されるリモートファイル名の生成に使用されるファイル名ジェネレーターを設定します。- パラメーター:
fileNameGenerator
- ファイル名ジェネレーター。- 導入:
- 5.2
- 関連事項:
setCharset
文字列ペイロードをリモートファイルのコンテンツとしてバイトに変換するときに使用する文字セットを設定します。デフォルトUTF-8
- パラメーター:
charset
- 文字セット。- 導入:
- 5.2
- 関連事項:
setFilter
リモートファイルをフィルタリングするようにFileListFilter
を設定します。- パラメーター:
filter
- 設定するフィルター
setMputFilter
MPUT
コマンドの使用時にローカルファイルシステムビューに対して実行されるFileListFilter
。- パラメーター:
filter
- 設定するフィルター
setRenameExpression
転送中にファイル名を変更するための SpEL 式を指定します。- パラメーター:
renameExpression
- 使用する式。- 導入:
- 4.3
setRenameExpressionString
転送中にファイル名を変更するための SpEL 式を指定します。- パラメーター:
renameExpression
- SpEL 構文の文字列。- 導入:
- 4.3
setLocalFilenameGeneratorExpression
ダウンロード後にローカルファイルの名前を変更するための SpEL 式を指定します。- パラメーター:
localFilenameGeneratorExpression
- 使用する式。- 導入:
- 3.0
setLocalFilenameGeneratorExpressionString
ダウンロード後にローカルファイルの名前を変更するための SpEL 式を指定します。- パラメーター:
localFilenameGeneratorExpression
- SpEL 構文の文字列。- 導入:
- 4.3
setFileExistsMode
ファイルがすでにローカルに存在する場合に GET および MGET 操作を使用する場合、またはファイルがリモートシステムに存在する場合に PUT および MPUT を使用する場合に実行するアクションを決定します。- パラメーター:
fileExistsMode
- fileExistsMode を設定します。- 導入:
- 4.2
setChmodOctal
Spring XML の利便性のためのストリング setter。- パラメーター:
chmod
- 8 進数の文字列としてのアクセス許可(例: "600")。- 導入:
- 4.3
- 関連事項:
setChmod
public void setChmod(int chmod) アップロード後にファイルのアクセス許可を設定します。所有者の読み取り / 書き込みの場合は 0600。- パラメーター:
chmod
- 許可。- 導入:
- 4.3
isChmodCapable
public boolean isChmodCapable()getRemoteFileTemplate
doInit
protected void doInit()- オーバーライド:
- クラス
AbstractReplyProducingMessageHandler
のdoInit
handleRequestMessage
クラスからコピーされた説明:AbstractReplyProducingMessageHandler
サブクラスはこのメソッドを実装して、リクエストメッセージを処理する必要があります。戻り値は、メッセージ、MessageBuilder、任意のプレーンオブジェクトです。基本クラスは、これらの開始点のいずれかからの返信メッセージの最終的な作成を処理します。戻り値が null の場合、メッセージフローはここで終了します。- 次で指定:
- クラス
AbstractReplyProducingMessageHandler
のhandleRequestMessage
- パラメーター:
requestMessage
- リクエストメッセージ。- 戻り値:
- メッセージを処理した結果、または
null
nlst
protected ListSE<StringSE> nlst(Message<?> message, Session<F> session, StringSE dir) throws IOExceptionSE 指定されたディレクトリのリモートファイル名を一覧表示します。メッセージは、現在のリクエストに関連するいくつかのコンテキストについて調べることができます。デフォルトの実装では使用されません。- パラメーター:
message
- 現在のリクエストに関連するメッセージsession
- list file names コマンドを実行するセッションdir
- ファイル名をリストするリモートディレクトリ- 戻り値:
- 指定されたディレクトリ内のファイル / ディレクトリ名のリスト
- 例外:
IOExceptionSE
- リモートコマンドの実行中の IO 例外- 導入:
- 5.0
rm
protected boolean rm(Message<?> message, Session<F> session, StringSE remoteFilePath) throws IOExceptionSE 指定されたパスに対してリモート削除を実行します。メッセージを参照して、コンテキストを判別できます。デフォルトの実装では使用されません。- パラメーター:
message
- 削除するパスに関連するリクエストメッセージsession
- 削除コマンドを実行するためのリモートプロトコルセッションremoteFilePath
- 削除するリモートパス- 戻り値:
- リモート削除の結果として true または false
- 例外:
IOExceptionSE
- リモートコマンドの実行中の IO 例外- 導入:
- 5.0
mv
protected boolean mv(Message<?> message, Session<F> session, StringSE remoteFilePath, StringSE remoteFileNewPath) throws IOExceptionSE リモートパスを別のパスに移動します。メッセージを参照して、コンテキストを判別できます。デフォルトの実装では使用されません。- パラメーター:
message
- この移動コマンドに関連するリクエストメッセージsession
- 移動コマンドを実行するためのリモートプロトコルセッションremoteFilePath
- ソースリモートパスremoteFileNewPath
- ターゲットリモートパス- 戻り値:
- 操作の結果として true または false
- 例外:
IOExceptionSE
- リモートコマンドの実行中の IO 例外- 導入:
- 5.0
put
メッセージに基づいてファイルをリモートサーバーに書き込みます。メッセージを参照して、コンテキストを判別できます。セッション引数は、デフォルトの実装では使用されません。- パラメーター:
message
- この put コマンドに関連するリクエストメッセージsession
- この呼び出しコンテキストに関連するリモートプロトコルセッションsubDirectory
- 配置するターゲットのサブディレクトリ- 戻り値:
- リモートパス。ローカルファイルが見つからなかった場合は null。
- 導入:
- 5.0
doChmod
転送後にリモートファイルでモードを設定します。デフォルトの実装は何もしません。- パラメーター:
remoteFileOperations
- リモートファイルテンプレート。path
- パス。chmodToSet
- 設定する chmod。- 導入:
- 4.3
mPut
提供されたディレクトリからリモートサーバーにファイルを再帰的に配置します。メッセージを参照して、コンテキストを判別できます。セッション引数は、デフォルトの実装では使用されません。- パラメーター:
message
- この mPut コマンドに関連するリクエストメッセージsession
- この呼び出しコンテキストのリモートプロトコルセッションlocalDir
- サーバーに出力するローカルディレクトリ- 戻り値:
- 送信されたファイルのリモートパスのリスト
- 導入:
- 5.0
ls
リモートファイルをローカル表現にリストします。現在のリクエストのコンテキストについては、メッセージを参照できます。デフォルトの実装では使用されません。- パラメーター:
message
- リストリクエストに関連するメッセージsession
- list コマンドを実行するセッションdir
- コンテンツをリストするリモートディレクトリ- 戻り値:
- リモートファイルのリスト
- 例外:
IOExceptionSE
- リモートコマンドの実行中の IO 例外
filterFiles
filterFile
filterMputFiles
purgeLinks
purgeDots
get
protected FileSE get(Message<?> message, Session<F> session, StringSE remoteDir, StringSE remoteFilePath, StringSE remoteFilename, F fileInfoParam) throws IOExceptionSE リモートファイルを構成済みのローカルディレクトリにコピーします。- パラメーター:
message
- メッセージ。session
- セッション。remoteDir
- リモートディレクトリ。remoteFilePath
- リモートファイルのパス。remoteFilename
- リモートファイル名。fileInfoParam
- リモートファイル情報。null の場合、最初に "ls" コマンドを実行します。- 戻り値:
- ファイル。
- 例外:
IOExceptionSE
- IOException。
mGet
getFullFileName
デフォルトでは、このメソッドは リモートファイル名を使用して リモートディレクトリにアクセスし、完全な リモートファイルパスを構築します。リモートファイルプロトコル固有の実装は、他のアプローチのためにこのメソッドをオーバーライドする場合があります。- パラメーター:
remoteDirectory
- リモートファイルが属するディレクトリ。remoteFile
- リモートファイルに名前を付け、指定された リモートディレクトリに従ってパスを調整します。- 戻り値:
- リモートファイルのフルパス
getRemoteFilename
isDirectory
isLink
getFilename
getFilename
getModified
asFileInfoList
enhanceNameWithSubDirectory