クラス 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.outbound.SftpOutboundGateway
- 実装済みのインターフェース一覧:
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 class SftpOutboundGateway
extends AbstractRemoteFileOutboundGateway<org.apache.sshd.sftp.client.SftpClient.DirEntry>
SFTP を介してリモートファイル操作を実行するための送信ゲートウェイ。
- 導入:
- 2.1
- 作成者:
- Gary Russell, Artem Bilan
ネストされたクラスの概要
クラス AbstractRemoteFileOutboundGateway から継承されたネストクラス / インターフェース
AbstractRemoteFileOutboundGateway.Command, AbstractRemoteFileOutboundGateway.Optionクラス AbstractReplyProducingMessageHandler から継承されたネストクラス / インターフェース
AbstractReplyProducingMessageHandler.RequestHandlerインターフェース IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールド概要
クラス AbstractMessageProducingHandler から継承されたフィールド
messagingTemplateクラス IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, loggerインターフェース IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEインターフェース Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEコンストラクター概要
コンストラクターコンストラクター説明SftpOutboundGateway(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, StringSE command, @Nullable 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, @Nullable 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 voiddoChmod(RemoteFileOperations<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileOperations, StringSE path, int chmod) 転送後にリモートファイルでモードを設定します。デフォルトの実装は何もしません。protected org.apache.sshd.sftp.client.SftpClient.DirEntryenhanceNameWithSubDirectory(org.apache.sshd.sftp.client.SftpClient.DirEntry file, StringSE directory) protected StringSEgetFilename(org.apache.sshd.sftp.client.SftpClient.DirEntry file) protected StringSEgetFilename(AbstractFileInfo<org.apache.sshd.sftp.client.SftpClient.DirEntry> file) protected longgetModified(org.apache.sshd.sftp.client.SftpClient.DirEntry file) booleanprotected booleanisDirectory(org.apache.sshd.sftp.client.SftpClient.DirEntry file) protected booleanisLink(org.apache.sshd.sftp.client.SftpClient.DirEntry file) クラス 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, setFileExistsModeExpression, setFileExistsModeExpressionString, setFileNameExpression, setFileNameGenerator, setFilter, setLocalDirectory, setLocalDirectoryExpression, setLocalDirectoryExpressionString, setLocalFilenameGeneratorExpression, setLocalFilenameGeneratorExpressionString, setMputFilter, setOption, setOptions, setRemoteDirectoryExpression, setRemoteFileSeparator, setRenameExpression, setRenameExpressionString, setTemporaryFileSuffix, setTemporaryRemoteDirectoryExpression, setUseTemporaryFileNameクラス AbstractReplyProducingMessageHandler から継承されたメソッド
doInvokeAdvisedRequestHandler, getBeanClassLoader, getIntegrationPatternType, getRequiresReply, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setRequiresReplyクラス AbstractMessageProducingHandler から継承されたメソッド
addNotPropagatedHeaders, createOutputMessage, getNotPropagatedHeaders, getOutputChannel, isAsync, messageBuilderForReply, produceOutput, resolveErrorChannel, sendErrorMessage, sendOutput, sendOutputs, setAsync, setNotPropagatedHeaders, setOutputChannel, setOutputChannelName, setSendTimeout, setupMessageProcessor, shouldCopyRequestHeaders, shouldSplitOutput, updateNotPropagatedHeadersクラス AbstractMessageHandler から継承されたメソッド
handleMessage, onComplete, onError, onNext, onSubscribe, setObservationConventionクラス MessageHandlerSupport から継承されたメソッド
buildSendTimer, destroy, getManagedName, getManagedType, getMetricsCaptor, getObservationRegistry, getOrder, getOverrides, isLoggingEnabled, isObserved, registerMetricsCaptor, registerObservationRegistry, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrackクラス 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クラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース reactor.core.CoreSubscriber から継承されたメソッド
currentContextインターフェース IntegrationManagement から継承されたメソッド
getThisAsインターフェース 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, @Nullable StringSE expression) 提供されたセッションファクトリ、コマンド ( "ls"、"get" など)、リモートパスを決定する式を使用してインスタンスを構築します。- パラメーター:
sessionFactory- セッションファクトリ。command- コマンド。expression- リモートパス式。
SftpOutboundGateway
public SftpOutboundGateway(RemoteFileTemplate<org.apache.sshd.sftp.client.SftpClient.DirEntry> remoteFileTemplate, StringSE command, @Nullable 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
- 次で指定:
- インターフェース
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。