クラス SftpOutboundGateway
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<org.apache.sshd.sftp.client.SftpClient.DirEntry>
org.springframework.integration.sftp.gateway.SftpOutboundGateway
- 実装されたすべてのインターフェース:
org.reactivestreams.Subscriber<Message<?>>
、Aware
、BeanClassLoaderAware
、BeanFactoryAware
、BeanNameAware
、DisposableBean
、InitializingBean
、ApplicationContextAware
、Ordered
、ExpressionCapable
、Orderable
、MessageProducer
、HeaderPropagationAware
、IntegrationPattern
、NamedComponent
、IntegrationManagement
、TrackableComponent
、MessageHandler
、reactor.core.CoreSubscriber<Message<?>>
public class SftpOutboundGateway
extends AbstractRemoteFileOutboundGateway<org.apache.sshd.sftp.client.SftpClient.DirEntry>
SFTP を介してリモートファイル操作を実行するための送信ゲートウェイ。
- 導入:
- 2.1
- 作成者:
- Gary Russell, Artem Bilan
ネストされたクラスのサマリー
クラス org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway から継承されたネストクラス / インターフェース
AbstractRemoteFileOutboundGateway.Command, AbstractRemoteFileOutboundGateway.Option
クラス 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
コンストラクターのサマリー
コンストラクター説明SftpOutboundGateway
(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, StringSE command, StringSE expression) 指定されたリモートファイルテンプレート、コマンド( "ls"、"get" など)、ファイル名を決定する式を使用してインスタンスを構築します。SftpOutboundGateway
(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, MessageSessionCallback<org.apache.sshd.sftp.client.SftpClient.DirEntry, ?> messageSessionCallback) 提供されたリモートファイルテンプレートと、セッションで操作を実行するためのコールバックを使用してインスタンスを構築します。SftpOutboundGateway
(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, StringSE command, StringSE expression) 指定されたセッションファクトリ、コマンド( "ls"、"get" など)、ファイル名を決定する式を使用してインスタンスを構築します。SftpOutboundGateway
(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, MessageSessionCallback<org.apache.sshd.sftp.client.SftpClient.DirEntry, ?> messageSessionCallback) 提供されたセッションファクトリとセッションで操作を実行するためのコールバックを使用してインスタンスを構築します。メソッドのサマリー
修飾子と型メソッド説明protected ListSE<AbstractFileInfo<org.apache.sshd.sftp.client.SftpClient.DirEntry>>
asFileInfoList
(CollectionSE<org.apache.sshd.sftp.client.SftpClient.DirEntry> files) protected void
doChmod
(RemoteFileOperations<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileOperations, StringSE path, int chmod) 転送後にリモートファイルでモードを設定します。デフォルトの実装は何もしません。protected org.apache.sshd.sftp.client.SftpClient.DirEntry
enhanceNameWithSubDirectory
(org.apache.sshd.sftp.client.SftpClient.DirEntry file, StringSE directory) サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。protected StringSE
getFilename
(org.apache.sshd.sftp.client.SftpClient.DirEntry file) protected StringSE
getFilename
(AbstractFileInfo<org.apache.sshd.sftp.client.SftpClient.DirEntry> file) protected long
getModified
(org.apache.sshd.sftp.client.SftpClient.DirEntry file) boolean
protected boolean
isDirectory
(org.apache.sshd.sftp.client.SftpClient.DirEntry file) protected boolean
isLink
(org.apache.sshd.sftp.client.SftpClient.DirEntry file) クラス org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway から継承されたメソッド
assertRemoteFileTemplateMutability, doInit, filterFile, filterFiles, filterMputFiles, get, getFullFileName, getRemoteFilename, getRemoteFileTemplate, handleRequestMessage, ls, mGet, mPut, mv, nlst, purgeDots, purgeLinks, put, remoteFileTemplateExplicitlySet, rm, setAutoCreateDirectory, setAutoCreateLocalDirectory, setCharset, setChmod, setChmodOctal, setFileExistsMode, setFileNameExpression, setFileNameGenerator, setFilter, setLocalDirectory, setLocalDirectoryExpression, setLocalDirectoryExpressionString, setLocalFilenameGeneratorExpression, setLocalFilenameGeneratorExpressionString, setMputFilter, setOption, setOptions, setRemoteDirectoryExpression, setRemoteFileSeparator, setRenameExpression, setRenameExpressionString, setTemporaryFileSuffix, setTemporaryRemoteDirectoryExpression, setUseTemporaryFileName
クラス 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, 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, getComponentName, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, 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
コンストラクターの詳細
SftpOutboundGateway
public SftpOutboundGateway(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, MessageSessionCallback<org.apache.sshd.sftp.client.SftpClient.DirEntry, ?> messageSessionCallback) 提供されたセッションファクトリとセッションで操作を実行するためのコールバックを使用してインスタンスを構築します。- パラメーター:
sessionFactory
- セッションファクトリ。messageSessionCallback
- コールバック。
SftpOutboundGateway
public SftpOutboundGateway(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, MessageSessionCallback<org.apache.sshd.sftp.client.SftpClient.DirEntry, ?> messageSessionCallback) 提供されたリモートファイルテンプレートと、セッションで操作を実行するためのコールバックを使用してインスタンスを構築します。- パラメーター:
remoteFileTemplate
- リモートファイルテンプレート。messageSessionCallback
- コールバック。
SftpOutboundGateway
public SftpOutboundGateway(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory, StringSE command, StringSE expression) 指定されたセッションファクトリ、コマンド( "ls"、"get" など)、ファイル名を決定する式を使用してインスタンスを構築します。- パラメーター:
sessionFactory
- セッションファクトリ。command
- コマンド。expression
- ファイル名式。
SftpOutboundGateway
public SftpOutboundGateway(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, StringSE command, StringSE expression) 指定されたリモートファイルテンプレート、コマンド( "ls"、"get" など)、ファイル名を決定する式を使用してインスタンスを構築します。- パラメーター:
remoteFileTemplate
- リモートファイルテンプレート。command
- コマンド。expression
- ファイル名式。
メソッドの詳細
isDirectory
protected boolean isDirectory(org.apache.sshd.sftp.client.SftpClient.DirEntry file) - 次で指定:
- クラス
AbstractRemoteFileOutboundGateway<org.apache.sshd.sftp.client.SftpClient.DirEntry>
のisDirectory
isLink
protected boolean isLink(org.apache.sshd.sftp.client.SftpClient.DirEntry file) - 次で指定:
- クラス
AbstractRemoteFileOutboundGateway<org.apache.sshd.sftp.client.SftpClient.DirEntry>
のisLink
getFilename
- 次で指定:
- クラス
AbstractRemoteFileOutboundGateway<org.apache.sshd.sftp.client.SftpClient.DirEntry>
のgetFilename
getFilename
protected StringSE getFilename(AbstractFileInfo<org.apache.sshd.sftp.client.SftpClient.DirEntry> file) - 次で指定:
- クラス
AbstractRemoteFileOutboundGateway<org.apache.sshd.sftp.client.SftpClient.DirEntry>
のgetFilename
asFileInfoList
protected ListSE<AbstractFileInfo<org.apache.sshd.sftp.client.SftpClient.DirEntry>> asFileInfoList(CollectionSE<org.apache.sshd.sftp.client.SftpClient.DirEntry> files) - 次で指定:
- クラス
AbstractRemoteFileOutboundGateway<org.apache.sshd.sftp.client.SftpClient.DirEntry>
のasFileInfoList
getModified
protected long getModified(org.apache.sshd.sftp.client.SftpClient.DirEntry file) - 次で指定:
- クラス
AbstractRemoteFileOutboundGateway<org.apache.sshd.sftp.client.SftpClient.DirEntry>
のgetModified
enhanceNameWithSubDirectory
protected org.apache.sshd.sftp.client.SftpClient.DirEntry enhanceNameWithSubDirectory(org.apache.sshd.sftp.client.SftpClient.DirEntry file, StringSE directory) - 次で指定:
- クラス
AbstractRemoteFileOutboundGateway<org.apache.sshd.sftp.client.SftpClient.DirEntry>
のenhanceNameWithSubDirectory
getComponentType
クラスからコピーされた説明:IntegrationObjectSupport
サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。- 次で指定:
- インターフェース
NamedComponent
のgetComponentType
- オーバーライド:
- クラス
MessageHandlerSupport
のgetComponentType
isChmodCapable
public boolean isChmodCapable()- オーバーライド:
- クラス
AbstractRemoteFileOutboundGateway<org.apache.sshd.sftp.client.SftpClient.DirEntry>
のisChmodCapable
doChmod
protected void doChmod(RemoteFileOperations<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileOperations, StringSE path, int chmod) クラスからコピーされた説明:AbstractRemoteFileOutboundGateway
転送後にリモートファイルでモードを設定します。デフォルトの実装は何もしません。- オーバーライド:
- クラス
AbstractRemoteFileOutboundGateway<org.apache.sshd.sftp.client.SftpClient.DirEntry>
のdoChmod
- パラメーター:
remoteFileOperations
- リモートファイルテンプレート。path
- パス。chmod
- 設定する chmod。